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.vvcat.cn/2018/07/08/2019/07/git-branch-all/
发表日期:July 9th 2018, 1:22:30 am
更新日期:January 9th 2024, 12:20:32 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可