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:
leo
2026-01-12 10:47:12 +08:00
parent 56ed619044
commit af1363e6bf

View File

@@ -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>