My coworker use eclipse to rename many files
for example: apple.java
to Apple.java
so when I pull the code,it has conflict
the git hint said I have to delete those file before pull,but I don't want to
How can I solve this conflict??
My coworker use eclipse to rename many files
for example: apple.java
to Apple.java
so when I pull the code,it has conflict
the git hint said I have to delete those file before pull,but I don't want to
How can I solve this conflict??
When you changed file name by eclipse git wasn't informed about that. It means it still expects "apple.java" to be on your hard drive and it considers "Apple.java" as some non-staged file (not added one).
What you should do is to move files back on your hard drive (in any way) and then "git mv" them again.
Pull shouldn't be a problem after you do that and commit your changes.
It's not the good way to rename file like your coworker. Try git mv apple.java Apple.java
then git commit -m "Rename file"
and then : git pull
. It should fix your problem.