tags:

views:

446

answers:

2

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
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
Yes, of course "git clone" the repo. "git pull" would come afterwards, if you still made changes to the linux-based repo.
Leonidas
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
+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