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

6 comments
Comment actions Permalink

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

0
Comment actions Permalink

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?

0
Comment actions Permalink

@Dan push from IDEA defaults to the tracked branch if one exists. Most probably you've set new branch to track origin/master.

 

0
Comment actions Permalink

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.

0
Comment actions Permalink

I guess I am really asking is can the default be the current branch, not the tracked branch?

0

Please sign in to leave a comment.