Skip to content

Instantly share code, notes, and snippets.

@joncode
Created September 25, 2013 16:28
Show Gist options
  • Select an option

  • Save joncode/6702230 to your computer and use it in GitHub Desktop.

Select an option

Save joncode/6702230 to your computer and use it in GitHub Desktop.
MOVING A BRANCH POINTER
git reset --hard 10123974102937840192374
this moves the pointer to that commit. This is what you want most of the time
git reset --soft 0238947293842937429384723
this moves the pointer and via an index that you commit , very strange.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment