Skip to content

Instantly share code, notes, and snippets.

@if6was9
Created January 8, 2013 23:42
Show Gist options
  • Select an option

  • Save if6was9/4489143 to your computer and use it in GitHub Desktop.

Select an option

Save if6was9/4489143 to your computer and use it in GitHub Desktop.
Git pull equivalent of "git push -f"
$ git fetch <remoteref> <branchname>
$ git reset --hard FETCH_HEAD
$ git clean -df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment