设置 git 来拉和推所有分支 [英] Set up git to pull and push all branches
本文介绍了设置 git 来拉和推所有分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想默认推拉所有分支,包括新创建的分支.
I'd like to push and pull all the branches by default, including the newly created ones.
是否有我可以为其定义的设置?
Is there a setting that I can define for it?
否则,当我在本地添加一个新分支并想从服务器拉取它时,最简单的方法是什么?
Otherwise, when I add a new branch, locally and I want to pull it from the server, what is the simplest way to do it?
我创建了一个同名的新分支并尝试拉取,但它不起作用.向我询问分支的所有远程配置.我该如何设置.
I created a new branch with the same name and tried to pull but it doesn't work. Asks me for all the remote config of the branch. How do I set it.
推荐答案
最简单的方法是:
git push --all origin
这将推送标签和分支.
这篇关于设置 git 来拉和推所有分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文