Skip to content

Instantly share code, notes, and snippets.

@1Marc
Last active March 24, 2016 18:08
Show Gist options
  • Save 1Marc/2df9a1b545a792c3a33b to your computer and use it in GitHub Desktop.
Save 1Marc/2df9a1b545a792c3a33b to your computer and use it in GitHub Desktop.
Reset to current branch
// replace # with the number of the step you are on
git fetch origin
git reset --hard
git branch --track fem-# origin/fem-#
git checkout fem-#
git clean -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment