Also, there are other git hosting providers out there.
Easy.
Just like it was for Ross Ulbricht!
THAT was the point but thanks for being the thread police and a conversation killer. Next time if I want to digress a little I'll run it past you first.
For other tools/plugins that you can't be certain about you would have to run things in a VM that prevents non-Tor connections - e.g. this is how Qubes/Whonix does things.
Replace Tor with VPN as desired.
Whether the use is for-profit is not a factor either. It's part of a factor. The first factor of the fair use test [1] is:
> the purpose and character of the use, including whether such use is of a commercial nature or is for nonprofit educational purposes;
"including" is not "limited to", so something as simple as whether the use brings in any revenue, whether through donations or sales, could be one consideration within the first factor. Whether the use is for-profit is another consideration.
[1] https://en.wikipedia.org/wiki/Fair_use#U.S._fair_use_factors