In my git repository I've got a weird file in the staging area that's refusing to be reverted, removed, committed - basically I can't make it go away..
The file must be some ancient OS 9 file sitting there in the folder for years.
Couple days ago I've removed the file in the file system so now git is tracking the 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 any files
Any idea how to make git completely forget about that file?
Git filter-branch It's the default go-to method for repository cleanups. Git filter-branch runs a filter that removes the unnecessary files. You can then manually remove all original references, expire all the records in the Git replay log and run the garbage collector to the tainted data.
The ICON R package provides complex networks in edge list format that can be easily incorporated into network analysis pipelines. The package is based on the Index of COmplex Networks (ICON) website that curates complex networks and corresponding summary information (e.g. source, number of nodes & edges, discipline).
Adding a line
Icon?
to .gitignore worked for me.
https://answers.atlassian.com/questions/167170/removing-invisible-icon-files-on-a-local-repository-on-a-mac
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With