Skip to content

Instantly share code, notes, and snippets.

@nickcheng
Created August 31, 2017 11:36
Show Gist options
  • Save nickcheng/f3664fcb758c7c47f9e920c1090bd1d2 to your computer and use it in GitHub Desktop.
Save nickcheng/f3664fcb758c7c47f9e920c1090bd1d2 to your computer and use it in GitHub Desktop.
How to do "git pull --force".
git fetch --all
git reset --hard <branch_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment