This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Move the branch pointer to a different commit | |
git branch -f branch-name commit-name | |
// Cancel merging | |
git reset --hard ORIG_HEAD | |
git reset --merge ORIG_HEAD ;; If you wanna keep your changes | |
// Cancel editing a file | |
git checkout -- <file> |
OlderNewer