I have a very unusual behavior from git. I modified a file that appears twice when I enter my git status command. The name and location of both files is exactly the same. Well it is the same file...
And I try to add them both (with git add fileName or git add .) only one of them is added. Then I tried everything (git restore the one not added, git add the one not added, git restore -- staged the one added - brings me back to initial case - push the one added to add the second one etc.) and nothing seems to work.
Couldn't find anything and the Internet either. Would anyone has any idea why this is happening and how to fix it?
Thanks in advance
Here is the git feedback:
On branch feature/LDS23-18
Your branch is up to date with 'origin/feature/LDS23-18'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: app/Models/SubscriptionHelp.php
modified: app/Models/subscriptionHelp.php
Edit :
Even if the names of the files appear to be different on the screen I do have only one file. The one with the lower 's' does not exist