Export an archive
Export Archive… writes the files of a commit, branch or tag as a .zip or .tar.gz, without the .git folder, like git archive. It is the quickest way to hand someone a release’s source.
FreeUpdated
Works in GitTree Free: every local Git feature, once you are signed in.
On this page
Before you start
- The commit, branch or tag you want to export is in the graph.
Where to find it
- Right-click a commit or a tag: Export Archive….
| Action | macOS | Windows and Linux |
|---|---|---|
| Find the commit first | ⌘F | Ctrl+F |
Steps
Open the export
Right-click the commit or tag and choose Export Archive….
Choose the format and folder
Pick Zip archive (.zip) or Gzipped tarball (.tar.gz). Under Folder inside the archive, type a prefix such as
project-1.0/, or leave it empty.Save
Press Export… and choose where to save the file.
Expected result
A .zip or .tar.gz with the files exactly as they were in that commit.
What is and is not included
- Files marked
export-ignorein.gitattributesare left out;export-substplaceholders are filled in. - Git LFS files are written as their small pointer files, not their content.
- Submodules are not included: their folders are left out.
If something goes wrong
“This folder name cannot be used”
Use / between folders and end the prefix with /, such as project-1.0/.
Questions
Does the archive include my uncommitted changes?
No. It contains the commit exactly as recorded.