gitignore - Stop git from re-deleting an ignored file that used to be tracked? -
a previous poster wanted track file in 1 branch , not in another; want not track @ all.
i used have ".p4client" tracked in git, turned out mistake. deleted repository, added name .gitignore
, , recreated file. gets deleted when switch branches -- checkouts, not all. appears occur when switching to 'master', not from, , not when going between dev branches.
how can put stop this, , keep file around, untracked?
the deletion occurred in 'master' , has not been merged feature branches existed @ time. git-rm
in 'master' ahead of commits in, say, 'de8060' , needs reapplied when checking out master.
solution
merge 'master' every branch not ancestor of, before re-creating ".p4client". git not need 'update' working copy 'newer' delete operation each time 'master' checked out.
Comments
Post a Comment