未验证 提交 66f717cf 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #60104 from mathiasvr/fix-60002

Fix #60002 Undo last commit: keep staged files
......@@ -1114,14 +1114,7 @@ export class Repository {
}
async reset(treeish: string, hard: boolean = false): Promise<void> {
const args = ['reset'];
if (hard) {
args.push('--hard');
}
args.push(treeish);
const args = ['reset', hard ? '--hard' : '--soft', treeish];
await this.run(args);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册