Created
December 8, 2010 22:49
-
-
Save BinaryMuse/734070 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
No; these are just a couple commands I whipped up for a coworker new to Git who had messed up his repos somehow (I think it was when he switched OS's from Windows or had done something else very weird).
ok, but this makes sense when updating moodle via git :) not that I was going to meddle with php and get my hands dirty.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you use this for moodle updates?