Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch repositories in Android Studio?

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?

like image 926
Ahmed Avatar asked Mar 16 '23 14:03

Ahmed


2 Answers

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

like image 61
isma3l Avatar answered Mar 25 '23 01:03

isma3l


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

like image 28
ilian Avatar answered Mar 25 '23 00:03

ilian