Преглед на файлове

git-reset: add simpler --hard example

Waldir Pimenta преди 7 години
родител
ревизия
595c4eb234
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      pages/common/git-reset.md

+ 4 - 0
pages/common/git-reset.md

@@ -23,6 +23,10 @@
 
 `git reset --soft HEAD~2`
 
+- Discard any uncommitted changes, staged or not (for only unstaged changes, use `git checkout`):
+
+`git reset --hard`
+
 - Reset the repository to a given commit, discarding committed, staged and uncommitted changes since then:
 
 `git reset --hard {{commit}}`