How to get CLion to honour git config branch pushremote ?
Answered
I am using a git-tracked project in which some of the branches have different pull and push remotes - in other words, part of .git/config looks like
[remote "officialOrigin"]
url = git@yyyyyyyyyyyyyy
fetch = +refs/heads/*:refs/remotes/officialOrigin/*
[remote "origin"]
url = git@xxxxxxxxxxxxx
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
pushremote = officialOrigin
Unfortunately, when pushing from inside CLion with VCS/Git/Push it sends commits to origin instead of officialOrigin. How can I get it to behave just like the command-line git would in these circumstances?
Please sign in to leave a comment.
Hi Knowlespj. Thanks for pointing the issue.
I've created a ticket in the tracker https://youtrack.jetbrains.com/issue/IDEA-198657
Please follow the ticket to get updates.