Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why git status shows same file twice?

Tags:

git

macos

I have changed a file and checked the git status then it's showing me same file twice. I searched the web but couldn't find anything

My configuration
git version 2.4.9 (Apple Git-60)
OSX 10.11.2

enter image description here

like image 389
Inder Kumar Rathore Avatar asked Sep 01 '26 03:09

Inder Kumar Rathore


1 Answers

Apparently the below solution doesn't worked for me

git mv -f Myamcat MyAmcat

git was throwing error fatal: renaming 'MyAmcat' failed: Invalid argument

So I just did a workaround

git mv  Myamcat MyAmcatTemp
git commit -m "changed dir"
git mv MyAmcatTemp MyAmcat
git commit -m "changed to exact dir"
like image 119
Inder Kumar Rathore Avatar answered Sep 03 '26 16:09

Inder Kumar Rathore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!