Skip to content

Instantly share code, notes, and snippets.

@christianb
Created September 7, 2020 11:54
Show Gist options
  • Save christianb/8fffa6b56fcc5f2efae243d981c6a594 to your computer and use it in GitHub Desktop.
Save christianb/8fffa6b56fcc5f2efae243d981c6a594 to your computer and use it in GitHub Desktop.
Resets a branch to its origin state
git fetch origin branch_name
git reset --hard origin/branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment