Skip to content

Instantly share code, notes, and snippets.

@hermzz
Last active January 26, 2017 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hermzz/1e5fb935b9135892194b37a17644a5d4 to your computer and use it in GitHub Desktop.
Save hermzz/1e5fb935b9135892194b37a17644a5d4 to your computer and use it in GitHub Desktop.

Receive a git push --force

git fetch
git reset --hard $remote/$branch

Rebase remote branch into local

git checkout $local
git rebase $remote/$branch $local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment