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
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.
VCS - > Git - > Remotes Popup will open with all repository URLs configured, you can simply edit them or add new one.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With