A tip I saw some time ago is to do:
rm folder -rf
Additionally you could move the git folder to the trash folder. I think it’s usually located at $HOME/.local/share/trash/files/
Then you can delete it from the trash once you’re certain you got the right folder
The one example I can think of is the Remnant games, at least for Remnant 2 on release it was cheaper on Epic Store than on Steam, by like 10 USD if I recall correctly