推/拉电流分支 [英] Push / Pull current branch
问题描述
在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设置中,如"此主题详细介绍了:
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 withmerge.ff
.
可以从Team -> Remote -> Configure Push to Upstream...
设置EGit首选项
我认为默认设置是推送所有内容.
您可以在弹出的对话框中将其限制为主"或任何您喜欢的特定分支.
同样,通过和Team -> Remote -> Configure Fetch from UpStream...
进行提取
我不知道这两个都支持'current'.
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'.
实际上,仅正式推送 current 分支可能尚未受到EGit官方版本的直接支持:请参阅 git配置" 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屋!