SheppardDigital
asked on
Error when trying to commit a Git repository
I have a Spring Boot Web application, which lately I've noticed is now showing all files need to be committed, which is strange as I've not changed all files.
I've tried to commit the project to Git but I'm getting the following error;
"
You have both src/main and src/main/java/com/national locums/App lication.j ava
You have both src/main and src/main/java/com/national locums/App lication.j ava
"
Can anyone help me figure out why this is going wrong?
I've tried to commit the project to Git but I'm getting the following error;
"
You have both src/main and src/main/java/com/national
You have both src/main and src/main/java/com/national
"
Can anyone help me figure out why this is going wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks, for showing the fix (and for the points). Just curious... How it happened? Did you stage (add) the files and later moved to another directory before committing?
ASKER
I have no idea how it happened, as far as I know there were no changes to the files or folder structure.
ASKER
Open in new window