Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove weird 'Iconr' file from the repository

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?

like image 897
ATV Avatar asked Mar 23 '14 11:03

ATV


People also ask

How do I remove unwanted files from my git repository?

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.

What is Icon r?

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).


1 Answers

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

like image 134
Tak Avatar answered Sep 22 '22 06:09

Tak