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

问题描述

在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:

可以从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官方版本的直接支持:请参阅错误352381 .
换句话说,EGit/JGit可能没有考虑 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":

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

08-20 01:48
查看更多