Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a repository and add a new one in Android studio?

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.

like image 967
Sumod Kulkarni Avatar asked Jun 09 '15 18:06

Sumod Kulkarni


People also ask

Can you delete Repositories?

From this page, find the repository you want to delete, and click on the title. Then, locate the toolbar at the top and click the Settings tab. Scroll all the way to the bottom of the page until you see the Danger Zone section. Here, click Delete this repository.


1 Answers

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.

like image 116
Sivakumar Avatar answered Oct 05 '22 23:10

Sivakumar