How to delete a repository and add a new one in Android studio?
U can remove connection from git repository.
step 1 :Open git bash.
step 2 : navigate to the master folder. '
step 3 : $ git remote rm origin
The git remote will now be removed from the repository.
Now u can add new connection by using VCS->Git->+add.
Related videos on Youtube
Sumod Kulkarni
Updated on June 07, 2022Comments
-
Sumod Kulkarni almost 2 years
I was working with VCS enabled in Android Studio and pushed my code to a repository that I had created in BitBucket. However, now the team I'm working with has created a new repository also on BitBucket and I have to switch my entire project there. So how do I stop VCS in my current project, and push code to a new repoositroy with a new link from scratch?
Also, in the first repository that I was working with only the "java" folder was pushed and not the rest. Now in the new repository I want to be able to commit and push changes made in all other files as well like "res" etc.
-
Nick Volynkin almost 9 yearsto remove a git repository just delete the .git folder. But make a backup in case you need some data from the branches.
-
Sumod Kulkarni almost 9 yearsWhere can I find the .git folder? I did a search and couldn't find any such folder.
-
Nick Volynkin almost 9 yearsIt's hidden. You need to switch showing hidden files on.
-
Sumod Kulkarni almost 9 yearsIt worked, thank you!
-