Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38812c8

Browse files
author
Saiful
committed
Revoke/Undo from Repository
1 parent a622190 commit 38812c8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Though there are 1000’s of articles about git, I have written this article is
196196
# All chnages of the workspace will be discard.
197197
$ git reset --hard
198198

199-
### Revoke/Undo from Staging (Workspace <-- Staging <-- Repository)
199+
### Revoke/Undo from Repository (Workspace <-- Staging <-- Repository)
200200

201201
# Restore all files from the Repository to the Workspace.
202202
# Remaining the workspace unchanged.
@@ -213,14 +213,18 @@ Though there are 1000’s of articles about git, I have written this article is
213213
# Undo the last commit.
214214
# All chnages of the workspace will be discard.
215215
$ git reset --hard HEAD~1
216+
217+
### Revoke/Undo from Rmote (Workspace <-- Staging <-- Repository)
216218

217219
# Create a new commit to undo the specified commit.
218220
# All changes of the latter will be offset by the former and applied to the current branch.
219221
$ git revert [commit]
220222

223+
### Stash
224+
221225
# Remove the uncommitted changes temporarily and move them in later.
222226
$ git stash
223-
$ git stash pop
227+
$ git stash pop
224228

225229
### Ignore files and folder
226230

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /