When we use .git in a project some times we need to do a fresh start or abandon the project we definitely need to delete all hidden git repository files.

For this a terminal command is enough! This terminal command below will delete all git files recursively.