I have one branch (let\'s call it B) that ignores a certain file, which isn\'t ignored in some other branches (eg branch A). When i switch from branch B to branch
Ignoring files in git does not mean they are out of revisioning. You can have a file checked in and managed in git and have it ignored in .gitignore.
.gitignore