Skip to content

Instantly share code, notes, and snippets.

@SteadBytes
Created October 8, 2019 08:34
Show Gist options
  • Save SteadBytes/5c17901f672583a51c34807770e07224 to your computer and use it in GitHub Desktop.
Save SteadBytes/5c17901f672583a51c34807770e07224 to your computer and use it in GitHub Desktop.
Handy git command to reset local to state of origin i.e. if origin has been force pushed
git fetch
git reset --hard @{u}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment