Git export FAQ: How do I export a Git project, like I would do with a "cvs export" or "svn export"?
There is no "git export" command, so instead you use the "git archive" command. By default, "git archive" produces its output in a tar format, so all you have to do is pipe that output into gzip or bzip2 or other.
Git export example
Here's a simple Git export command I just ran. I moved into the root of my Git project directory, then ran this command to create a new file named "latest.tgz":
This website is a little one-man operation. If you found this information helpful, I’d appreciate it if you would share it.