How to switch repositories in Android Studio?

7.8k Views Asked by At

I had initially checked out code from repository A. But due to maintenance tasks, we had the code moved to a new repository B.

When I try to update/commit my code I get the below error:

svn: 'http://99.99.99.old/svn/company/project/trunk/web'
is not the same repository as
'http://99.99.99.new/svn/company/project'

Is there way to 'relocate' my Android Studio code from repo A to repo B?

2

There are 2 best solutions below

0
isma3l On BEST ANSWER

You can use the command line and do svn relocate: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.relocate.html

or inside Android Studio the option it's at the bottom of this menu :VCS->Subversion->Relocate

0
ilian On

There is an option in update dialog to Update/Switch repository. You can open it with Ctrl+T shortcut.