Created
November 19, 2019 18:54
-
-
Save sulram/8acea3d72d6bbdd97a846393c55a9e23 to your computer and use it in GitHub Desktop.
git
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
# git reset current branch HEAD to the commit | |
git reset --hard <commit-hash> | |
git push --force origin master | |
# git force pull to overwrite local files | |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment