I get:
$ git checkout mybranch
error: Your local changes to the following files would be overwritten by checkout:
.idea/workspace.xml
Please, commit your changes or stash them before you can switch branches.
Aborting
But .idea/already in mine .gitignore. If I do git status, no changes also occur.
Please advice.
UPDATE:
Thanks for the advice. I would like to go in mybranchand check, but I could not, because it did not allow me to switch! Provided that the correct behavior is ignored .idea/(these are project configuration files from the IDE), what should I do now? My goal is to go to mybranchand merge it with master. You can think of mybranchas a production branch and a master as a dev branch. Now I want to update prod, as the wizard is quite stable.
source
share