问题描述
我想在EGit中执行以下操作:
$ git checkout -b newbranch
$ git push -u origin newbranch
这给了我一个新的本地分支,将它推送到上游服务器,创建正确的跟踪参考。如何在EGit中完成相同的操作?
对于第一个操作,您可以阅读EGit手册,还有已打开允许在Push Branch向导中配置上游(在)。
$ b
注意:已在:
I would like to do the following in EGit:
$ git checkout -b newbranch
$ git push -u origin newbranch
This gives me a new local branch, pushes it to the upstream server and creates the right tracking reference. How do I do the same in EGit?
For the first operation, you can read the EGit manual "Creating a New Local Branch "
For the push, see Vogella's Egit tutorial, but also the "Push ref specification"
Note: robinst has opened bug 378960 "Allow to configure upstream in Push Branch wizard" (mentioned in "EGit - set up remote tracking correctly when creating a branch").
Note: bug 378960 has been marked as resolved (February 2014) in Egit 3.2:
这篇关于如何在EGit中创建适当的新本地和远程分支组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!