How to remove existing git repository from android studio project ?

In order to drop the current git repository a create a new one you need to:

  • Go to the project’s directory: cd PROJECT_DIRECTORY
  • Remove all the git specific files: rm -rf $(find . -name ".git*")
  • Initialize a new git repository: git init

This doesn’t remove your project’s files, only git configs

Leave a Reply

Your email address will not be published. Required fields are marked *