I had a local git branch of my project called my_branch
.
I pushed the branch on Gitlab, so its name on Gitlab was my_branch
.
Then I renamed the local branch as my_branch_2
via Pycharm bottom-left-located wizard (branch name > rename ...
), and I also renamed it on Gitlab, via browser UI.
Now, in Pycharm, every time I VCS > Git > Push...
, Pycharm suggests me to push the code into a new branch called my_branch
as default.
In few words, in the left frame of window "Push commits to my_project", I have
my_branch_2 -> origin: my_branch (new!)
but what I want is
my_branch_2 -> origin: my_branch_2
How can I fix things in order to get it?