How to change GitHub repository in IDEA Intellij?

github, intellij-idea, project

Solution

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.

Problem

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

Original source

Related problems