Default branch for git pull
已回答
Hello,
I have a question regarding the git integration: when I push, while being on a tracked branch, the branch to push to is selected by default (so I'm basically two keystrokes away from pushing), but when I want to pull I need to select the branch from the list every time. Since I always push and pull from the same (tracked) branch, this is pretty annoying and cumbersome. Is there a setting that I could set to get this to work? Or if not, would you guys consider adding this behavior?
Best regards,
Adam Pohorecki
请先登录再写评论。
Standard Version Control -> Update Project action also uses git pull including the rebase variant. So you might use it instead of pull dialog when pulling from the default branch and remote. The update project also provide autostash functionality. You could also consider using git-specific "Push Active Branches" dialog for pushing changes to the default branch and remote.
"Push Active Branches..." command is available in RubyMine | Version Control | VCS Quick List.. In JB we are working with our Git support using VCS Quick List.. action. We usually push changes using Push Active Branches action and pull using RubyMine | Version Control | Update Project...
Thanks guys, that's exactly what I was looking for.
Additionally, could just make sure that the branch is properly configured to the remote.
For example, we recently changed our repo, so had to do the following for master:
git branch --set-upstream-to=origin/master master
Now origin/master is auto-selected for me on pull.
Thx Glenn, thats what I'm looking for. I am surprised that there is no option for this in the settings.