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 91 times
0
Marcus Borkenhagen
- 6,536
- 1
- 30
- 33
John Bachir
- 22,495
- 29
- 154
- 227
-
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,944
- 5
- 56
- 71