skiphoppy
skiphoppy

Reputation: 102863

Can I just copy a git repository to Windows?

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?

Upvotes: 23

Views: 9276

Answers (2)

oz10
oz10

Reputation: 158454

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.

Upvotes: 29

Leonidas
Leonidas

Reputation: 2438

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.

Upvotes: 7

Related Questions