Skip to content

Instantly share code, notes, and snippets.

@burningTyger
Forked from BinaryMuse/git.sh
Created March 21, 2011 21:56
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 burningTyger/880303 to your computer and use it in GitHub Desktop.
Save burningTyger/880303 to your computer and use it in GitHub Desktop.
# To just pull changes from Github, forcing Git to use your local changes for any conflicts:
git pull --strategy=ours origin master
# To completely update each of your Git repositories in one command (run this inside each repository):
git add . && git commit -m "Updating to current working version" && git pull --strategy=ours origin master && git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment