diff --git a/content/cheat-sheet/_index.html b/content/cheat-sheet/_index.html index cea6851f91..0e9d5a3abf 100644 --- a/content/cheat-sheet/_index.html +++ b/content/cheat-sheet/_index.html @@ -86,10 +86,14 @@

Tell Git to forget about a file without deleting it:

Unstage one file:

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

Unstage everything:

git reset + OR + git restore --staged .

Check what you added:

@@ -225,6 +229,8 @@

Delete all staged and unstaged changes to one file:

Delete all staged and unstaged changes:

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

Delete untracked files: