All the operations are under your Android Studio project folder, please firstly locate to that folder.
1. Delete the local repository, avoiding endless prompts.
$ rm -rf .git
2. Or to delete .gitignore and .gitmodules if any.
$ rm -rf .git*
3. To see if hidden folder .git is still there.
$ ls -lah
4. To view hidden folders in Finder.
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
5. To check the remote repository
$ git remote -v6. To delete the origin remote
$ git remote rm origin