Search code examples
androidgitandroid-studioversion-control

Remove old and add new git in android studio


I have tried to configure android studio with git and messed up.

How to completely remove old git that I could create new one?


Solution

  • In order to drop the current git repository and 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