Reputation: 7554
I start with a opencart project in Mac OSX.
I use GitHub client to commit to repo. I had committed few times, got 6-7 commit records.
My source code is store inside dropbox.
I also got another workstation which is working in Windows. I have sync all the file in Windows.
In Windows, I used TortoiseGIT. In the Windows Explorer, it shows exactly the same like same Mac, which means what file I edit before it shows red exclamation mark. File didn't amend, it got a green tick.
However, in Windows when I select GIT Commit to Master, it shows all my files are modified. I go to Command Prompt check with git status, it also showed all the file is modified.
When the modified file (actual modified file) dropbox sync with Mac OSX, in Mac OSX, I can track the real modified file. Mac OSX work perfect.
But it is not work well in Windows.
What actually goes wrong?
[Windows 7] Windows Explorer View
[Windows 7] Command Prompt View
Upvotes: 0
Views: 250
Reputation: 7241
It's probably related to differing line endings. See this Github article for details and instructions on how to clean up the repository.
Upvotes: 1
Reputation: 4375
That is normal. It is a encoding problem between mac and windows. I had that too a few times. I think you first worked on mac and created the whole project there? So all the files are mac encoded.. Maybe this question and the answers could help you further: GitHub: Using UTF-8 encoding for files
Upvotes: 0