Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change GitHub repository in IDEA Intellij?

I've lost access to my previous account on GitHub, so created new one and now, when I am trying to share my project ( which was shared on GitHub before), I get this message:

Can't get repository info: {myRepositoryName} 404: Not Found - Not Found 

How to tell IDEA Intellij that I want to share project on different repository? thanks

like image 812
mrk2 Avatar asked Apr 23 '14 10:04

mrk2


People also ask

How do I change my remote repository in Intellij?

To edit a remote (for example, to change the name of the original project that you have cloned), right-click the remote branch in the Branches pane of the Git Log tool window, and select Edit Remote from the context menu. You can also edit a remote from the Push Dialog by clicking its name.

How do I change my Git repository URL in Intellij?

VCS - > Git - > Remotes Popup will open with all repository URLs configured, you can simply edit them or add new one.

How do I create a GitHub repository in IntelliJ?

Create an empty repository on any Git hosting, such as Bitbucket or GitHub. You can create a repository on GitHub without leaving IntelliJ IDEA: see Share a project on GitHub. Invoke the Push dialog when you are ready to push your commits by selecting VCS | Git | Push from the main menu, or press Ctrl+Shift+K.

What is IntelliJ IDEA for Git?

IntelliJ IDEA lets you manage Git projects hosted on GitHub directly from the IDE: clone repositories, share your projects, create forks, share code through gists, create pull requests and review incoming pull requests.

How do I change the git repository url in idea?

From the Welcome Screen Configure > Settings > [Template Project Settings] > Version Control > GitHub TO CHANGE THE GIT REPOSITORY This needs to be done via command line or the Terminal Tool Window in IDEA (Tools > Terminal Window). See Stackoverflow topic How to change a remote repository URI using Git?for information.

Is there a way to sync IntelliJ settings with GitHub?

There is another option to sync your settings in IntelliJ Idea, with official JetBrains plugin IDE Settings Sync IDE Settings Sync but it has rating 2.1 out of 5 with a majority of 1s so… I stick with setting repo. I recommend starting with creating new repository for your settings on GitHub.


2 Answers

Update or add Git repository URL in Intellij

VCS - > Git - > Remotes

Popup will open with all repository URLs configured, you can simply edit them or add new one.

like image 113
Vijay Avatar answered Oct 02 '22 18:10

Vijay


TO CHANGE GITHUB CREDENTIALS

From an open project:

File > Settings > [Project Settings] > Version Control > GitHub

Or

File > Other Settings > Default Settings > [Template Project Settings] > Version Control > GitHub

From the Welcome Screen

Configure > Settings > [Template Project Settings] > Version Control > GitHub

TO CHANGE THE GIT REPOSITORY

This needs to be done via command line or the Terminal Tool Window in IDEA (Tools > Terminal Window). See Stackoverflow topic How to change a remote repository URI using Git? for information.

like image 26
Javaru Avatar answered Oct 02 '22 18:10

Javaru