diff --git a/content/cheat-sheet/_index.html b/content/cheat-sheet/_index.html index 9703b99adf..174e6548c7 100644 --- a/content/cheat-sheet/_index.html +++ b/content/cheat-sheet/_index.html @@ -212,10 +212,14 @@

Ways to refer to a commit

Discard Your Changes

Delete unstaged changes to one file:

+ git restore <file> + OR git checkout <file>

Delete all staged and unstaged changes to one file:

+ git restore --staged --worktree <file> + OR git checkout HEAD <file>