W
W
WebDev2018-06-01 10:51:04
git
WebDev, 2018-06-01 10:51:04

How to set up a git branch when pushing in PhpStorm?

I am working on two branches: master and dev. When moving to the dev branch, I make changes, then commit and push. When pushing, the master branch is substituted by default, and I often mistakenly push push and the changes go to the master branch.
5b10fa91acc58350606610.png
Previously, the branch in which I am currently working was substituted, but now I need to manually edit it every time I push.
This has changed since the PhpStorm update. Maybe it's somehow configurable? Help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2018-06-04
@alekciy

I recommend using tasks (tasks) https://www.jetbrains.com/help/phpstorm/managing-t...
Each task will have its own branch. When switching between tasks, branches are also switched. The second advantage of working through tasks is context preservation. Those. all open tabs within the task will be saved and automatically closed/opened.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question