phpstorm - Is possible to open two different git branches of the same project like openning two diferent projects? -


as title says. possible phpstorm?

i have 1 project different branches , want open 1 branch in 1 window , other branch in window

the question not phpstorm git. phpstorm projects directories might or might not git work trees.

before version 2.5, git repository checked out in single working tree. since version 2.5, git can handle multiple working trees attached single git repository.

the git command git worktree , documentation says:

description

manage multiple working trees attached same repository.

a git repository can support multiple working trees, allowing check out more 1 branch @ time. git worktree add new working tree associated repository. new working tree called "linked working tree" opposed "main working tree" prepared "git init" or "git clone". repository has 1 main working tree (if it’s not bare repository) , 0 or more linked working trees.

you can attach multiple working trees git repository, check out different branches in them , open them in phpstorm different projects (in separate windows).

read more git worktree on git website or type git worktree in terminal (or in phpstorm's terminal window).

use git --version find out version of git use.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -