Tell me how to choose a branch in which I want to make a push ...

Here I have a local branch featureRefactorCameraHelper and there is a local branch develop , I ended up with a branch featureRefactorCameraHelper and now I want to push it into the local branch develop I make a commit and push it and get this window

enter image description here

1) How to choose a branch in which I want to make a push 2) What does this line mean?

 featureRefactorCameraHelper -> origin:+featureRefactorCameraHelper 

and under it a test ... Where will this push go?

    1 answer 1

    and now I want to push it into a local branch develop

    it is impossible to push one local branch to another. You can only launch to a remote server. And you most likely want to merge changes of two branches together. This is called merge. How to do it in the idea - I do not know, I do it (and strongly recommend to do it) in the console. And there everything is simple

     git checkout develop # перешли в develop git merge featureRefactorCameraHelper # слили 

    featureRefactorCameraHelper -> origin:+featureRefactorCameraHelper

    In this not tricky way, the medium shows that your featureRefactorCameraHelper branch will be sent to the server with the origin alias (this is the default name for the remote server). And the plus sign probably means that this branch will be created there, if it is not there.

    • You can again) So I have a master branch on the server (for releases) and next to it I create a dev branch. When I need to make changes, I create a local feature branch (by the way, a question along the way, when I create a local feature branch, it already contains the latest changes or I need to pull), I work with it and when I’ve finished, I push to the dev branch on server. And when the release is ready, I make a push from the dev branch to the master branch, right? - Aleksey Timoshchenko
    • no need to create a branch on the server. когда я создаю локальную ветку feature то она уже содержит последние изменения - it contains exactly what was in the branch from which it was answered. It makes no sense to pull - on the server it is not. You can push from the feature feature in dev on the server, but not necessary. A dev branch is for the current working code, a feature for a new thing. master is what is sold (but in fact you are free to choose your names for branches). - KoVadim
    • And what about the alias of the branch ... Why is it assigned? I made a push from the local machine to the server and that's it ... how is this alias used? - Aleksey Timoshchenko
    • What is a "pseudonym for a branch"? origin is the server alias. And it is used only so that it would not write long names. - KoVadim
    • I just made a push and created a remote branch with the same name, now I have 2 remote branches, but now how can I remove these 2 remote branches? master and featureRefactorCameraHelper ? - Aleksey Timoshchenko