1 | git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |
来自 Stackoverflow
链接:http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
1 | git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |
来自 Stackoverflow
链接:http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
原文作者:Maple
原文链接:https://blog.vmko.cc/2018/07/09/2019-07/git-branch-all/
发表日期:July 9th 2018, 1:22:30 am
更新日期:April 1st 2022, 9:10:53 pm
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可