How to change GitHub repository in IDEA Intellij?

让人想犯罪 __ 提交于 2020-08-02 05:41:13

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/23241509/how-to-change-github-repository-in-idea-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!