Let's say I want to create a file tree of a branch of my repo in an arbitrary place. Is this possible to do? Kind of like svn export.
Asked
Active
Viewed 90 times
0
Marcus Borkenhagen
- 6,406
- 1
- 31
- 33
John Bachir
- 22,081
- 24
- 147
- 213
-
Possibly a duplicate of http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export – Zecc Dec 10 '10 at 22:29
1 Answers
1
The closest thing to svn export that I'm aware of is using git archive, then extracting the result. Like so:
git archive --format=tar --prefix=SomeName HEAD
Then extract the tar.
OJ.
- 28,259
- 5
- 53
- 70