Push / Pull current branch

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.

thanks !!

  • Self Signed SSL Certificate Use With Windows Server 2012, Bonobo Git Server
  • Importing a Git Project into Aptana with SSH Username and Password
  • Aptana 3.1.1 (17th April 2012) Doesn't track changes using Git
  • How to set up Git with Aptana Studio 3?
  • How to get Aptana Studio to remember git ssh password
  • Import a local (existing) git repo into Aptana 3
  • How to install/setup TortoiseGit to work with GitHub
  • GitHub: Why should I fork?
  • How to hide team activity lines on Visual Studio 2015?
  • When (if ever) will HEAD~ and HEAD^ not be the same commit?
  • Visual Studio Team Services says “Task PowerShell failed.” although it didn't
  • How to compose git log for pending changes in TeamCIty
  • 2 Solutions collect form web for “Push / Pull current branch”

    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 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.

    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’.

    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 – push the current branch to a branch of the same name.

    Unfortunately, I’m unable to comment on VonC’s answer as I don’t have the required rep yet.

    EGit can be configured to push only the current branch by removing all push preferences from it’s git config file. This must be the default EGit behaviour if no push config is specified. Here’s how to do this:

    • Go to the Git Repositories view.
    • Right-click on the repo you want to configure.
    • Select ‘Properties’ from the context menu.
    • In the Key | Value input area, delete all push specs within the origin heading. There’s probably 2 of them, along the lines of refs/heads/*:refs/heads/* and refs/tags/*:refs/tags/*).
    Git Baby is a git and github fan, let's start git clone.