Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing online git repository url in IntelliJ project

How can I change online git repository in my IntelliJ project? Project is synchronized with current repository and I push / pull changes from IDE level.

like image 650
Jaqen K'uba Avatar asked Feb 03 '16 14:02

Jaqen K'uba


People also ask

How do I change my Git repository URL in Intellij?

From the main menu, choose Git | Manage Remotes. The Git Remotes dialog will open. button on the toolbar or press Alt+Insert . In the dialog that opens, specify the remote name and URL and click OK.


2 Answers

Within IntelliJ go to:

Tools > Terminal Window

And there type:

git remote set-url origin URLHERE

replacing URLHERE with your project git or https address.

like image 69
Felipe Cabargas Avatar answered Sep 21 '22 12:09

Felipe Cabargas


Within IntelliJ go to:

VCS > Git > Remotes ...

This will open a dialog box where you can update the origin URL for your online repository.

like image 38
jplandrain Avatar answered Sep 23 '22 12:09

jplandrain