-
Updating all remotes at once.
Just a quick one.
Say you have a repository with many remotes. Don’t roll your eyes; it’s very likely if you have many collaborators, or if you’re tracking a popular open source project. To pull down all available changes at once try this:
git fetch --allNo surprise about what it does.
Of course, this is a
fetch, not apull, which is a combination ofgit fetchandgit merge, so after this command, don’t expect that your branches have been magically updated. I’m not a big fan ofpull; I much prefer to fetch all changes and then explicitly merge with a chosen branch. In my case this works because I don’t have many tracking branches, because I find I can work just as well with the remote branches directly.Posted on March 31, 2010 with 2 notes ()
-
365git posted this
-