Skip to content

Instantly share code, notes, and snippets.

@tjoskar
Created March 18, 2014 15:02
Show Gist options
  • Select an option

  • Save tjoskar/9621827 to your computer and use it in GitHub Desktop.

Select an option

Save tjoskar/9621827 to your computer and use it in GitHub Desktop.

GIT Commands

Reset local repository to be just like the remote repository HEAD

$ git fetch origin
$ git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment