I'm late to the party, but AFAIK, removing the git history is not a violation of the AGPL. Git is not even mentioned in GNU Public licenses... If you fork a GPL project and distribute the binaries (or services in the case of AGPL) you have to give the source code to the users in any form. You can even send each user a floppy disk with the code, if that's convenient.
A single-user Mastodon instance, home of Gabriele Lucci's profile and toots.