推/拉当前分支 [英] Push / Pull current branch

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

问题描述

在 aptana 中可以只推/拉当前分支吗?我的意思是,如果可以在团队菜单中以某种方式配置它,那么当我执行拉/推时,只使用当前分支.

It is possible in aptana to push / pull only the current branch? I mean, if it is possible in the team menu, to configure it somehow so when i do a pull / push, only use the current branch.

谢谢!!

推荐答案

最可靠的方法是使用 EGit(您需要将其添加到您的 Aptana 设置中,如让 Aptana Studio 3 在您的 GitHub 上工作Windows PC").
该线程详细说明:

The surest way to do this would be with EGit (that you would need to add to yuor Aptana setup, as illustrated in "Getting Aptana Studio 3 working with GitHub on your Windows PC").
This thread details it:

Egit 有自己的处理方式,这可能会覆盖您的配置设置.
要么 jgit 不支持这个配置选项——这种情况早先出现在 merge.ff 中.

Egit has its own way to handle this, which might be overriding your config setting.
Either that or jgit doesn't support this configuration option yet -- that situation came up earlier with merge.ff.

EGit 首选项可以从 Team ->远程 ->配置推送到上游...
我认为默认是推送所有内容.
您可以在弹出的对话框中将其限制为master"或任何您喜欢的特定分支.
与 fetch 类似,via 和 Team ->远程 ->配置从上游提取...
我不知道这些是否支持当前".

The EGit preference can be set from Team -> Remote -> Configure Push to Upstream...
The default is to push everything, I think.
You can restrict it to 'master', or whatever specific branches you prefer, in the dialog that will pop up.
Similarly for fetch, via and Team -> Remote -> Configure Fetch from UpStream...
I don't know if either of these supports 'current'.

实际上,EGit 的正式版本可能还不直接支持仅推送 current 分支:请参阅 错误 352381.
换句话说,EGit/JGit 可能不会考虑 git config "push.default":

Indeed, pushing only the current branch might not be directly supported by an official release of EGit just yet: See bug 352381.
In other word, EGit/JGit might not take into account the git config "push.default":

current - 将当前分支推送到同名分支.

current - push the current branch to a branch of the same name.

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

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