I would like to ask for the help with the issue I am experiencing during switching git branches (applies to other vcs, I believe) in the project within phpstorm while file watchers being applied to files.
Thing is: We are versioning the generated files so the git can auto-deploy them after push. Currently with the gulp watching (applies to other file-watchers) over some .es6 and .scss files, when I switch the git branch, some files are regenerated.
Sometimes, even if the content of the generated files remains same, phpstorm registers regenerated files as "changed", marking them with blue color (I mean VCS color, blue = updated, green = new, red = unversioned; not sure if it's default). [ VCS > Refresh file status ] is not "removing" the blue color. "git reset --hard" does.
So I am forced to A) turn off and of the gulp everytime I switch the branch, or B) do a git reset everytime I forget to turn the gulp off.
I believe problems may be caused by the fact that the files are generated during the git checkout (branch switch), what causes some timestamps or cache or something to differ.
May anbody help here or this problem is too specific? Are there any known ways to prevent need of turning the gulp off manualy every time?
Thank you for your help, guys.