Tuesday, April 19, 2011

how to get all the branches that is remote in git

If you have many remote branches that you want to fetch at once:

$ git remote update
$ git pull --all

Now you can checkout any branch as you need to, without hitting the remote repo.


http://stackoverflow.com/questions/67699/how-do-i-clone-all-remote-branches-with-git