Git Archive


I only recently realised that it is possible to fetch a complete copy of a git repository through wget/curl only.

If only the content of the repository is important, this is useful, and is also commonly used. One such usage is an Arch Linux User Repository (AUR) package.

Here an example with GitHub, the URL is quite self-explanatory. As last argument either a branch, or a tag can be used.

wget ""

Here is an example with GitLab, where the syntax is a bit more verbose. The number used after “projects” is the Project ID, which can be found just below the repository name listed in the GitLab UI.

wget "" -O