Skip to content

Instantly share code, notes, and snippets.

@nncl
Last active March 8, 2016 14:07
Show Gist options
  • Save nncl/8c6e0dd8ffb207d5ceae to your computer and use it in GitHub Desktop.
Save nncl/8c6e0dd8ffb207d5ceae to your computer and use it in GitHub Desktop.
Syncing remote repo

To get your local repo exactly like remote one:

$ git reset --hard origin/master

$ git reset --hard HEAD
$ git pull ...

Obs: master is the branch's name you want to sync.

Credit: Eilem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment