A previous poster wanted to track a file in one branch and not in another; I just want to not track it at all.
I used to have ".p4client" tracked in git, which turned out to be a mistake. So I deleted it from the repository, added the name to .gitignore
, and recreated the file. Now it gets deleted when I switch branches -- but only some checkouts, not all. It appears to occur only when switching to 'master', not from, and not when going between dev branches.
How can I put an stop to this, and just keep the file around, untracked?