Answer the question
In order to leave comments, you need to log in
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.
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
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 questionAsk a Question
731 491 924 answers to any question