Export all files
- git checkout-index -f -a */full_path_to_folder/
- git checkout-index -f -a —prefix=/D/LAB/Sqlite/_export/
Export into a zipped file
- git archive —format zip full_path/file_name.zip branch_name
- git archive —format zip /D/LAB/Sqlite/sqlitemerge.zip master
Export all tracked files, including those in .gitignore
- Create a tar archive that contains the contents of the latest commit on the current branch, and extract it in the /var/tmp/junk directory.
- git archive —format=tar —prefix=junk/ HEAD | (cd /var/tmp/junk/ && tar xf -)
- Create a compressed tarball for v1.4.0 release.
- Switch to the
git-1.4.0
taggit checkout tags/git-v1.4.0
git archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip > git-1.4.0.tar.gz
- Switch to the
- tar files compressed with gzip
- put a directory and its content into a TAR file
tar cvfz FILENAME.tar.gz DIRECTORY/
- extract from TAR files
- ???
tar -xvfz FILE.tar.gz
tar -zxvf FILE.tar.gz
- ???
- put a directory and its content into a TAR file
- get the uncompressed file size of a .tar.gz file
tar ztvf foo.tar.gz --totals