Created
July 30, 2015 07:00
-
-
Save rusllonrails/73e8231f0a9d01830b21 to your computer and use it in GitHub Desktop.
GIT: How to pull from branch if someone force pushed to it and you already have local version
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
1) | |
git reset --hard origin/your_branch | |
2) | |
git branch -D your_branch | |
git fetch origin | |
git checkout -b your_branch origin/your_branch | |
git pull origin your_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment