I was on branch A
and modified some files. I forgot to commit them. Then I switched to branch B
and suddenly remembered about files. Now, when I am trying to switch back to branch A
it disallows me, saying
The following working tree files would be overwritten by checkout
And giving the list of my modified files.
How to switch and keep files as on disk? I guess if I do --force
it will overwrite files with branch versions with is not applicable.