设置git来拉和推所有分支 [英] Set up git to pull and push all branches

查看:152
本文介绍了设置git来拉和推所有分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在默认情况下推拉所有分支,包括新创建的分支。



有没有可以为它定义的设置?

/ p>

否则,当我在本地添加一个新的分支时,我想从服务器中取出它,最简单的方法是什么?



我创建了一个具有相同名称的新分支,并试图拉取,但不起作用。询问我分支的所有远程配置。如何设置它。

解决方案

最简单的方法就是:

  git push  - 所有来源

标签和分支。

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.

解决方案

The simplest way is to do:

git push --all origin

This will push tags and branches.

这篇关于设置git来拉和推所有分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆