43

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

mrk2
  • 797
  • 3
  • 9
  • 20

3 Answers3

70

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.

Bugs
  • 4,491
  • 9
  • 32
  • 41
Vijay
  • 701
  • 1
  • 5
  • 2
26

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.

Community
  • 1
  • 1
Javaru
  • 30,412
  • 11
  • 93
  • 70
  • thanks, that's what I needed, I have changed credentials before, but didnt' know how to change repository URI – mrk2 Apr 24 '14 at 08:52
  • How to change the BitBucket repository URL. In the Bitbucket Linky plugin I do not see an option to modify the existing repository url. – Ashok kumar Ganesan Feb 22 '18 at 04:18
10

As of 2021 IntelliJ versions, this is now called "Manage Remotes" not just "Remotes"

enter image description here

Copy in the clone URL from github/bitbucket etc...

enter image description here

Adam Hughes
  • 14,601
  • 12
  • 83
  • 122