Git Integration disabled after switching branches

Answered

Hi,

 

After updating PyCharm (jump from 2017.? to 2018.3), I've been having issues with Git Integration. I can enable it just fine, but if I switch branches (either through the PyCharm interface or externally through the command line) the Git Integration disappears and I have to re-enable it.

I tried turning the per-branch 'workspace configuration' setting on and off, and had this problem in both cases.

PyCharm 2018.3

Mac OS High Sierra 10.13.2

"Git Integration" and "Github" plugins are both installed and enabled.

1
2 comments

Probably, you have committed the `.idea/vcs.xml` file that saves the VCS mapping configurations to one branch, but not another, sow switching the branch deletes the file and integration gets disabled.

You can use git ls-files to browse files tracked in git.

To solve the issue you need either to have vcs.xml in every branch, or do not track it in VCS at all.

0
Avatar
Permanently deleted user

I have the same issue in Webstorm 2020.3

 

WebStorm 2020.3.2
Build #WS-203.7148.54, built on January 25, 2021
Subscription is active until April 2, 2021.
Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 9916M
Cores: 12
Registry: bigger.font.in.project.view=true, ide.balloon.shadow.size=0
Non-Bundled Plugins: String Manipulation, com.chrisrm.idea.MaterialThemeUI, com.intellij.properties, com.markskelton.one-dark-theme, net.vektah.codeglance, Gitflow, zielu.gittoolbox, mobi.hsz.idea.gitignore, com.intellij.lang.jsgraphql, izhangzhihao.rainbow.brackets, ru.adelf.idea.dotenv

0

Please sign in to leave a comment.