Reputation: 1534
I've been using Git on my Linux (Ubuntu) machine to track changes to C++ code. Now, i'm working on Mac (OS-X 10.8), so i though i will just copy the whole folder of sources together with .git from Linux to Mac. However, that does not lead to anything good. Git lists me huge number of modified files, i guess all of them. I'm not sure, but i guess that might have something to do with the line endings in Linux and OS-X. So, what is the correct sequence of actions i should do in such situation to have a smooth transfer from one OS to another?
Thanks in advance, Denis.
EDIT solved the issue by setting filemode=false in .git/config
is it the proper solution? I don't quite understand what caused a problem?
EDIT2 forgot to mention, the original repository is cloned from "git://..."
EDIT3 apparently, the problem was that i used a USB flash drive to carry things from one os to another, and did not thought that it could make my life harder :) coppied everything again from scratch without USB and the problem is gone.
Upvotes: 0
Views: 695
Reputation: 11203
Assuming that you have ssh access to your account on the Ubuntu machine, I suggest cloning over ssh
:
$ git clone ssh://user@ubuntu-machine/path/to/git/repo
By using the actual git clone
operation on your Mac OS X machine you shouldn't run into any problems.
For reference, the GIT URLS section of the git-clone man page has all the URL format of all possible git transports.
Upvotes: 1