Projects [SHOW]
Git on PHPStorm
Manage branches #
In Git, branching is a powerful mechanism that allows you to diverge from the main development line, for example, when you need to work on a feature, or freeze a certain state of a code base for a release, etc.
In PhpStorm, all operations with branches are performed in the Git Branches popup. To invoke it, click the Git widget in the Status bar or press Alt+` and select Branches there:
The name of the branch that is currently checked out is displayed in the Git widget in the Status bar.
If you have many branches, you can choose whether you want to display all of them in the Branches popup, or just the favorites: toggle the Show Only Favorites and the Show x More commands at the bottom of the Branches popup.
To mark a branch as a favorite, hover the mouse cursor over the branch name, and click the star outline that appears on the left: .