Strange behavior of my Xcode in Git state?

Hi,


I am not sure what happen on my XCode7.

I just found that all files marked modified in my project. But I didn't do any modification and can't find any difference in compare view.

I also try to discard changes, but it still not work???


Does any body know what happen to my XCode? Why my git state so strange?


Thanks,

Eric

I wonder if the folder containing these files had its modification date/time updated?


For problems like this, you can use Terminal to run git commands manually. (If you don't have a compatible freestanding version of git installed, use 'xcrun git' instead of 'git', for the command. Try doing a 'git status'. I usually find that this gives a clearer explanation of what's regarded as changed.

Thanks Quincey,


I try the git command but didn't find any hint. Just a lot of file marked modified in the list. Nothing more in the list.

By the way, I found a strange thing. The "M" doesn't disappear if I try to use discard change.

But if modified the file first then discard change again, the "M" will disappear.

So there might be some file attribute changed in my project.

I am still looking for some way to restore my project quickly.

Thank you~~~



Eric

Finally, this issue gone after I re-commit all content again. (Discard chaged doesn't work.)

I think it caused by I used Dropbox to keep my data. I just re-download my project from Dropbox. (Changes hard disk.)

Strange behavior of my Xcode in Git state?
 
 
Q