Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## UNDO GIT MERGE
- # lists undo history for your repo, it references logs
- git reflog
- # resets to specific commit (eg. al commit 18)
- git reset --hard HEAD@{18}
- ## RESET TO LAST PUSH
- git checkout .
- ## UNSTAGE FILES
- git reset HEAD -- .
- ## UNDO COMMIT
- # undo commit that was not pushed, while keeping the changes in the current branch
- git reset HEAD~1 --soft
- ## ADD NEW CHANGES TO LAST COMMIT
- git commit --amend --no-edit
Add Comment
Please, Sign In to add comment