@whynothugo Here's an example of it in action: https://git.pleroma.social/pleroma/pleroma-fe/-/commit/6e5c7bf308ddcb2be756cb84c6c7119b612e4e28
Relevant manpage being gitattributes(5) and the export-subst option, plus git-archive if you want to create your own tarballs like forges do.