Download a Git Repository's Archive

If a Git repository's branch or tag isn’t required, and if you plan to delete it, it’s considered good practice to create and back up an archive of the branch or tag before you delete it. From the Refs view of the Git page, you can download an archive file (zip or tgz) for a Git repository's branch or tag:

Action How To

Download a branch's archive

  1. In the Git page's Refs view, click Branches Branches.

  2. From the Repositories drop-down list, select the repository.

  3. In the branches list, to the right of the branch name, click Actions, select Download, and then select zip or tgz.

Download a tag's archive

  1. In the Git page's Refs view, click Tags Tags.

  2. From the Repositories drop-down list, select the repository.

  3. In the tags list, to the right of the tag name, click Actions, select Download, and then select zip or tgz.