Sumod Kulkarni
Sumod Kulkarni

Reputation: 290

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.

Upvotes: 16

Views: 13709

Answers (2)

yoAlex5
yoAlex5

Reputation: 34255

[Remove and add git]

or you can add/edit remote url

VCS -> Git -> Remotes...

Upvotes: 0

Sivakumar
Sivakumar

Reputation: 191

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.

Upvotes: 9

Related Questions