Forrest logo
back to context overview

git-archive

List of commands for git-archive:

  • git-archive:tldr:020fe git-archive: Create a tar archive from the contents of a specific directory.
    $ git archive --output=${filename-tar} HEAD:${path-to-directory}
    try on your machine
    explain this command
  • git-archive:tldr:08afe git-archive: Create a zip archive from the current HEAD and print it to standard output.
    $ git archive --verbose --format=zip HEAD
    try on your machine
    explain this command
  • git-archive:tldr:57c3c git-archive: Prepend a path to each file to archive it inside a specific directory.
    $ git archive --output=${filename-tar} --prefix=${path-to-prepend}/ HEAD
    try on your machine
    explain this command
  • git-archive:tldr:ac496 git-archive: Create a tar archive from the contents of the current HEAD and print it to standard output.
    $ git archive --verbose HEAD
    try on your machine
    explain this command
  • git-archive:tldr:cf9bf git-archive: Create a tar archive from the contents of the latest commit on a specific branch.
    $ git archive --output=${filename-tar} ${branch_name}
    try on your machine
    explain this command
  • git-archive:tldr:d54c9 git-archive: Same as above, but write the zip archive to file.
    $ git archive --verbose --output=${filename-zip} HEAD
    try on your machine
    explain this command
back to context overview