Skip to content

Instantly share code, notes, and snippets.

@fidel-karsto
Created February 12, 2019 16:49
Show Gist options
  • Save fidel-karsto/3b97ff1957ff17b16adf363b761ae31a to your computer and use it in GitHub Desktop.
Save fidel-karsto/3b97ff1957ff17b16adf363b761ae31a to your computer and use it in GitHub Desktop.
git reset branch to initial state
git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment