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 5c63648

Browse files
author
Saiful
committed
readem update
1 parent 4b8ef73 commit 5c63648

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,16 @@ Though there are 1000’s of articles about git, I have written this article is
184184

185185
### Revoke/Undo from Staging (Workspace <-- Staging)
186186

187-
# Restore all files from the Staging to the Workspace.
188-
# Remaining the workspace unchanged.
189-
$ git reset
190-
191187
# Restore specified file from the Staging to the Workspace.
192188
# Remaining the workspace unchanged.
193189
$ git reset [file]
194190

195-
# Reset the Staging and workspace, keeping consistent with the last commit.
191+
# Restore all files from the Staging to the Workspace.
192+
# Remaining the workspace unchanged.
193+
$ git reset
194+
195+
# Restore all files from the Staging to the Workspace.
196+
# All chnages pf the workspace will be discard.
196197
$ git reset --hard
197198

198199
# Reset the pointer of the current branch to pointing the specified commit while resetting the Staging, but the workspace remains unchanged.

0 commit comments

Comments
(0)

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