Change repository linked with android project in Git

2

Good morning, I created a project in Android Studio, I created a repository in Git, I made the Share of my project in my repository.

Now, I would like to change the repository, take this project from my already linked project and link it to another repository.

How do I swap my repository project in Android Studio or otherwise.

    
asked by anonymous 24.09.2015 / 16:42

1 answer

3

To change the repository remote in the shell:

$ git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git

To view the current url

$ git remote -v
origin https://github.com/USERNAME/OTHERREPOSITORY.git (fetch)
origin https://github.com/USERNAME/OTHERREPOSITORY.git (push)

I hope I have helped

Source link

    
24.09.2015 / 19:08