osx - Remove weird 'Iconr' file from the repository -


in git repository i've got weird file in staging area that's refusing reverted, removed, committed - can't make go away..

the file must ancient os 9 file sitting there in folder years.

couple days ago i've removed file in file system git tracking deletion of iconr.

however, it's stuck there.

the error i'm getting via sourcetree (my git ui client) is

fatal: pathspec 'folder/iconr' did not match files

any idea how make git completely forget file?

it best revert command line in order have more precise error message.

there can try git add -u, followed git commit, in order register deletion of file in repo.
see "git status says file deleted git rm says error: pathspec '…' did not match files" example.

you can preview git clean give: git clean -d -x -n (as explained in "why there no “pathspec” when try remove folder in git?")

the other issue when file isn't tracked @ in current branch, tracked in branch. see that answer check if case.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -