by toadi · 2y ago · 0 comments
I know people who still make zip/tarball copies of source trees because they don’t trust git, etc.
-- Linus Torvalds
(not really, but almost)
I must admit I have occasionally used git as a tool for transferring files (https://xkcd.com/949/).
#!/bin/sh -e
TARGET=../$(basename "$(pwd)")@$(date --utc +'%Y-%m-%dT%H:%M:%SZ').tar.gz
tar czf "$TARGET" .
You can even add a fourth line to upload it somewhere automatically...