Git is deleting an ignored file when i switch branches

Posted by Max Williams on Stack Overflow See other posts from Stack Overflow or by Max Williams
Published on 2010-04-22T14:20:00Z Indexed on 2010/04/22 14:23 UTC
Read the original article Hit count: 169

Filed under:

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 A, then back to B again, the file has been deleted.

Is this normal? I can sort of see how it would happen, in the sense that branch B thinks it's not there, and branch A thinks that it is, so when i go back to B it 'tidies it away'. But it's kind of annoying.

Any suggestions? thanks, max

© Stack Overflow or respective owner

Related posts about git