git 获取所有分支方法

首页 / 其他 / 正文
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
git
打赏
评论区
头像
    头像
    xvcjcdpbbo
    2025年1月6日 14:45
    回复

    哈哈哈,写的太好了https://www.lawjida.com/