Search code examples
gitintellij-ideagit-push

IntelliJ - push a branch other than the current one


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.


Solution

  • 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