From the command line I can do
$ git push origin branchB
even when I am currently on branchA
. Is there an equivalent command in IntelliJ IDEA? As far as I can tell, I can only push the current branch.
IDEA does not allow pushing non-current branch at the moment. Here is the request to add this ability, please vote: https://youtrack.jetbrains.com/issue/IDEA-164356