Skip to content

Instantly share code, notes, and snippets.

@nobk
Last active March 27, 2021 11:54
Show Gist options
  • Save nobk/4fd2b8517a38c1479b08a5ecb08319cc to your computer and use it in GitHub Desktop.
Save nobk/4fd2b8517a38c1479b08a5ecb08319cc to your computer and use it in GitHub Desktop.
pack modified files tracked by git in to compress archive
If we need pack all working files(maybe modifed), not the commited git files.
# ensure pwd is git root dir
git ls-files | tar -T - -cf - | lzip -9q > /tmp/master.tar.lz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment