Wednesday, 19 April 2017

[Git] fetch all remote branches and make them tracked by local branches


$ git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done 
$ git fetch --all
$ git pull --all

Reference from this How to fetch all git branches

No comments :

Post a Comment