Creating a tarball from git
Thursday 15, December 2011

If you need to create a tarball file using your repository as source, you can do it using the argument archive from the git command. For example, the following command will create a tarball called pybsnux.tar.gz from the current branch of your repository:

git archive --format=tar --prefix=pybsnux/ HEAD | gzip > 
    /tmp/pybsnux.tar.gz
tags: git

Tags

Buy me a coffee!! Coffee cup

Advertisment