@@ -196,7 +196,7 @@ Though there are 1000’s of articles about git, I have written this article is
196
196
# All chnages of the workspace will be discard.
197
197
$ git reset --hard
198
198
199
- ### Revoke/Undo from Staging (Workspace <-- Staging <-- Repository)
199
+ ### Revoke/Undo from Repository (Workspace <-- Staging <-- Repository)
200
200
201
201
# Restore all files from the Repository to the Workspace.
202
202
# Remaining the workspace unchanged.
@@ -213,14 +213,18 @@ Though there are 1000’s of articles about git, I have written this article is
213
213
# Undo the last commit.
214
214
# All chnages of the workspace will be discard.
215
215
$ git reset --hard HEAD~1
216
+
217
+ ### Revoke/Undo from Rmote (Workspace <-- Staging <-- Repository)
216
218
217
219
# Create a new commit to undo the specified commit.
218
220
# All changes of the latter will be offset by the former and applied to the current branch.
219
221
$ git revert [commit]
220
222
223
+ ### Stash
224
+
221
225
# Remove the uncommitted changes temporarily and move them in later.
222
226
$ git stash
223
- $ git stash pop
227
+ $ git stash pop
224
228
225
229
### Ignore files and folder
226
230
0 commit comments