I've a master branch with a .gitignore file with directory X listed in it. (X is not being tracked).
When I try to add a branch tracking a remote using the command
git checkout -b mybranch origin/mybranch
The remote branch is tracking X directory, and hence this checkout fails with the error
Untracked working tree file 'X' would be overwritten by merge.
What is the way out ?
Also I'd like to know how do i untrack some files in all the branches (local and remote alike) ?
Surya