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 2128901

Browse files
author
Saiful
committed
readme update
1 parent 6c8831d commit 2128901

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ followed the easiest process.
208208
# All chnages will be discard.
209209
# Undo the last commit.
210210
$ git reset --hard HEAD~1
211+
212+
# Reset a Git repository to a certain commit
213+
# This will delete the commits made after the certain commit
214+
# This is very dangerous
215+
$ git reset --hard [commit]
216+
$ git push --force origin [branch]
211217

212218
### Revoke/Undo from Remote (Workspace <-- Staging <-- Repository <-- Remote)
213219

0 commit comments

Comments
(0)

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