mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
enhance: use git reset --hard instead of git reset HEAD --hard to ignore all local changes (#2037)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -46,7 +46,7 @@ namespace SourceGit.Commands
|
||||
await new Clean(repo, Models.CleanMode.OnlyIgnoredFiles).Use(log).ExecAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
await new Reset(repo, "HEAD", "--hard").Use(log).ExecAsync().ConfigureAwait(false);
|
||||
await new Reset(repo, "", "--hard").Use(log).ExecAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user