Track all remote git branches as local branches

Using bash:

for remote in `git branch -r `; do b=`echo $remote | awk '{print substr($0, 8, length($0)-2)}'` ; git checkout $b;git pull; done


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章