Skip to content

Commit af1363e

Browse files
committed
enhance: use git reset --hard instead of git reset HEAD --hard to ignore all local changes (#2037)
Signed-off-by: leo <[email protected]>
1 parent 56ed619 commit af1363e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Discard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static async Task AllAsync(string repo, bool includeUntracked, bool inclu
4646
await new Clean(repo, Models.CleanMode.OnlyIgnoredFiles).Use(log).ExecAsync().ConfigureAwait(false);
4747
}
4848

49-
await new Reset(repo, "HEAD", "--hard").Use(log).ExecAsync().ConfigureAwait(false);
49+
await new Reset(repo, "", "--hard").Use(log).ExecAsync().ConfigureAwait(false);
5050
}
5151

5252
/// <summary>

0 commit comments

Comments
 (0)