
GitHub will give at least six months' notice before changing compression settings. The extracted contents won't change if the branch or tag doesn't change, but the outer compressed archive may have a different byte layout.

Assuming the branch or tag still points at the same commit ID, it will have the same file contents. Because branches and tags can move to different commit IDs, future downloads of an archive may have different contents than previously downloaded archives of the same branch or tag.An archive of a commit ID will always have the same file contents whenever it's requested, assuming the commit ID is still in the repository and the repository's name has not changed.It's important to understand what guarantees GitHub makes about source code archives. If the same archive is requested again in the future, it'll be regenerated. Source code archives are generated on request, cached for a while, and then deleted. tar.gz in the URLs above to request a zipball or tarball respectively. There are different URLs for downloading a branch, a tag, or a specific commit ID. For example, consider the repository github/codeql. Source code archives are available at specific URLs for each repository. To download the source code, click zip or tar.gz.

To download the source code, click Source code (zip) or Source code (tar.gz).ĭownloading source code archives from a tagĪt the top of the Releases page, click Tags. Scroll down to the "Assets" section of the release. To the right of the list of files, click Releases. On, navigate to the main page of the repository.ĭownloading source code archives from a release Downloading source code archives from the repository view You can download the source code archives in three ways. For more information, see " Cloning a repository." Downloading source code archives If you want the entire history, you can clone the repository. Snapshots don't contain the entire repository history. These snapshots are generated by the git archive command in one of two formats: tarball or zipball.

You can download a snapshot of any branch, tag, or specific commit from.
