Delete history of git files in the app folder


#1

Hello,
There are a lot of file in the git folder and looks all appending one in the other…so can I delete the git history and just keep the last one file?
If it is possible…what is the best and safe way to do that? also, Is there any configuration in git to avoid this kind of situation in the future?

Thanks for your help!!!