Created
December 11, 2018 16:09
-
-
Save samredai/4769e0a4c67665365f567a24fcb25fff to your computer and use it in GitHub Desktop.
Setting local Git repo to match remote branch
This file contains hidden or 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 fetch origin | |
git reset --hard origin/master | |
#replace master with any other remote branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment