Created
July 8, 2019 11:15
-
-
Save aliartiza75/cd1e2e5af68b4e98075180af22e412bf to your computer and use it in GitHub Desktop.
revert commits and sync remote repo with local
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
# to check the log history | |
git log | |
# to revert back number of commits | |
git reset --hard HEAD~<number-of-commit> | |
# to sync remote branch with local | |
git push --force origin <branch-name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks dude!!!. Really helpful. I was trying to sync a hard reset made in the local repo with the remote