I'm moving a git repository from my Linux machine to a Windows machine. I was hoping to just move the entire directory tree and find that things will "just work." Is this the case? Do I need to do anything about line endings?
+6
A:
Why don't you "git pull" the repo?
PS: Of course - "git clone" it (first). Point is: every git-repo is as valid as its clones.
Leonidas
2009-02-09 16:49:09
Can you give me more detail? I thought my options were to clone or copy; will git pull give me an identical repository instead of remote tracking branches?
skiphoppy
2009-02-09 16:52:56
Yes, of course "git clone" the repo. "git pull" would come afterwards, if you still made changes to the linux-based repo.
Leonidas
2009-02-09 17:09:21
The problem I thought with that was getting remote tracking branches instead of real branches; it seems that when I clone to another machine, however, that doesn't happen. So, thanks. :)
skiphoppy
2009-02-09 22:32:14
+2
A:
You don't even need the entire directory structure, just grab the .git directory and move it to your windows machine. Then run "git reset --hard" and it should rebuild the rest of the directory structure for you.
ceretullis
2009-02-10 00:48:46