Changing git push location?
Is it possible to change where IDEA's git support will push to when I do a "commit and push" operation?
We've started using gerrit for code reviews and I'd love to have IDEA push to gerrit from that command but I can't seem to figure where to configure the push.
I assume it's just relying on my .git/config settings for that...
Please sign in to leave a comment.
Hi Mark,
Yes, you're right: Commit & Push feature as well as Push Active Branches (which is actually called by Commit & Push) takes the origin and branch from your settings in .git/config.
To specify push destination you have to use Git -> Push Changes.
In future these actions will be united and thus Commit & Push will be configurable, but it's not yet implemented.
If you have some specific requirements or usability ideas, please, feel free to request them here or as a YouTrack issue (http://youtrack.jetbrains.net/).
After creating a new branch, the first push defaults to Master, not the current branch. I have had to become an expert in reverting commits. Can I set the default to the current branch?
@Dan push from IDEA defaults to the tracked branch if one exists. Most probably you've set new branch to track origin/master.
After the first push to a branch, IDEA does default to the current branch. My issue is with the first push of a created branch. That default is origin/master.
I guess I am really asking is can the default be the current branch, not the tracked branch?
Please vote for https://youtrack.jetbrains.com/issue/IDEA-100429