I have resolved this problem using following stpes

1) Remove every file from Git’s index.

git rm --cached -r

2) Rewrite the Git index to pick up all the new line endings.

git reset --hard


Categories: Git

1 Comment

Suman Pradhan · June 8, 2018 at 1:15 pm

1) Remove every file from Git’s index.

git rm –cached -r

not working…. giving some error

usage: git rm [] [–] …

-n, –dry-run dry run
-q, –quiet do not list removed files
–cached only remove from the index
-f, –force override the up-to-date check
-r allow recursive removal
–ignore-unmatch exit with a zero status even if nothing matched

Leave a Reply to Suman Pradhan Cancel reply

Avatar placeholder

Your email address will not be published. Required fields are marked *