Git / How to fetch all remote branches

Fetch all remote branches:
git fetch --all 

 
Fetch updates local copies of remote branches so this is always safe for your local branches but that means:
1) This will not create local branches tracking remote branches, you have to do this manually;

2) If you want to update your local branches you still need to pull every branch.

To view the list of all branches use
git branch -a


More details here: http://stackoverflow.com

2 comments: