Question - What happens if we are hosting a Git repo ourselves, like using Gitea or something, and we receive a DMCA takedown request and we refuse? I mean, they can take down the domain, but what if weare hosting on a personal homeserver and keep changing domains whenever they take one down?
Then it's your choice to comply, call their bluff, or do whatever you want. I've seen people who doxxed the DMCA sender and made threats towards the sending agent (the hoster was Russian).
Though best course of action would be to comply or ignore it, don't do what that guy did, best to keep quiet than to stir up trouble.
Outright refusal or ignoring it does come with the risk of litigation (threats can accelerate it or lead to prosecution) assuming you're within their jurisdiction.
The F-droid repository would be in the clear net I believe, I may be wrong, but it's way more unlikely that it would get shut down IMO, it doesn't get much traffic as a web page