Skip to content

Instantly share code, notes, and snippets.

@yannvery
Created April 9, 2015 08:10
Show Gist options
  • Select an option

  • Save yannvery/bb6b5ca8609825178b0e to your computer and use it in GitHub Desktop.

Select an option

Save yannvery/bb6b5ca8609825178b0e to your computer and use it in GitHub Desktop.
How to force git to pull a branch
# *branch is your branch
git fetch --all
git reset --hard origin/*branch
git pull origin *branch
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment