diff --git a/content/cheat-sheet/_index.html b/content/cheat-sheet/_index.html index cea6851f91..b09f546ae0 100644 --- a/content/cheat-sheet/_index.html +++ b/content/cheat-sheet/_index.html @@ -85,11 +85,11 @@

Tell Git to forget about a file without deleting it:

Unstage one file:

- git reset <file> + git restore --staged <file>

Unstage everything:

- git reset + git restore --staged .

Check what you added:

@@ -224,7 +224,7 @@

Delete all staged and unstaged changes to one file:

Delete all staged and unstaged changes:

- git reset --hard + git restore --staged --worktree .

Delete untracked files: