我目前已经设置了我的 git remote 来限制获取哪些分支:
git remote set-branches myOrigin myBranch
Run Code Online (Sandbox Code Playgroud)
这将适当的条目添加到.git/config:
[remote "myOrigin"]
fetch = +refs/heads/myBranch:refs/remotes/myOrigin/myBranch
Run Code Online (Sandbox Code Playgroud)
现在我想撤销这个,回到默认配置:
[remote "myOrigin"]
fetch = +refs/heads/*:refs/remotes/myOrigin/*
Run Code Online (Sandbox Code Playgroud)
如何在不手动修改我的情况下执行此操作.git/config?有git我可以运行的命令吗?