Skip to content

Instantly share code, notes, and snippets.

@samredai
Created December 11, 2018 16:09
Show Gist options
  • Save samredai/4769e0a4c67665365f567a24fcb25fff to your computer and use it in GitHub Desktop.
Save samredai/4769e0a4c67665365f567a24fcb25fff to your computer and use it in GitHub Desktop.
Setting local Git repo to match remote branch
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