How to Configure CLion’s Push GUI for Simultaneous Branch Updates?
Hello CLion Community,
I’m working with CLion on a project and have run into a snag with my Git setup. Specifically, I need to push updates to two branches, master
and submit
, at the same time. I’m seeking advice on customizing the default push GUI in CLion to execute git push origin master:master master:submit
.
I know I can create an alias in the terminal to do this, but I want to do this in CLion GUI.
What I’m aiming for is a streamlined process within the CLion GUI—a single-click action that pushes changes to both the master
and submit
branches of the remote repo. I realize that simultaneous branch pushing may not be a built-in feature of IntelliJ’s platform, but I’m hopeful that there’s a workaround or perhaps a plugin that can accomplish this.
Has anyone here managed to set up their CLion or another IntelliJ-based IDE in a way that supports this kind of operation? Any tips or guidance would be immensely helpful.
Thank you for your time and help!
请先登录再写评论。
Hi,
You may do this via PushURL parameter. Please see:
https://stackoverflow.com/questions/14290113/git-pushing-code-to-two-remotes/14290145#14290145