netbeans - Cannot Remove Tracked File From Git Bitbucket Repo -
i using git bitbucket repository 3 other developers.
one of devs accidentally pushed file don't want tracked in repo, , trying delete it.
when command:
git update-index --assume-unchanged nbproject/genfiles.properties
it gives me error:
fatal: unable mark file nbproject/genfiles.properties
although file there. have committed. however, when git status have 2 changes not staged commit (because purposefully exclude them committing).
we using netbeans (no choice) , project-specific files trying delete different on different machines (they on mac, i'm on linux).
is possible me delete or untrack file added else? admin on bitbucket repo.
the file in .gitignore.
i found answer problem. did git ls-files , saw files wanted rid of not being tracked me. why not mark or remove them.
so got hold of colleagues , had them run same command find out tracking files. when found culprit had them run git rm --cached filename, commit, push.
problem solved.
Comments
Post a Comment