I have a pretty basic work environment but does not manage to work with Git as desired.
Here is how we can describe it : two branches A and B with two files each in their working trees, the first file is toMerge and the second is toKeepSpecific.
I have the same .gitignore in the two branches saying to ignore the toKeepSpecific file. The toKeepSpecific file has never been pushed so in the remote repository, the two branches only contain toMerge.
The problem I have is that when I'm on branch B and try to checkout branch A, I have the following message : "The following untracked working tree file would be overwritten by checkout". I thought the .gitignore would take care of that but apparently not...
What's the most appropriate git environment for this kind of needs ?
Thanks !