我目前将我的git远程设置为限制获取哪些分支:
git remote set-branches myOrigin myBranch
这将在
.git/config
中添加正确的条目:[remote "myOrigin"]
fetch = +refs/heads/myBranch:refs/remotes/myOrigin/myBranch
现在我想撤销这个操作,回到默认配置:
[remote "myOrigin"]
fetch = +refs/heads/*:refs/remotes/myOrigin/*
我如何在不手动修改.git/config
的情况下完成这个操作?是否有git
命令可以运行?
git remote set-branches myOrigin '*'
吗? - zigarn