简体   繁体   中英

How to change GitHub repository in IDEA intelliJ

I have a project in intelliJ that's synchronized with a GitHub repository and I want to change it to another repository (same account).

To clarify: I have project A on repository R1. I have another repository R2.

I want to push the project A to repository R2.

You cannot edit Git remotes from within IntelliJ. There is a feature request to add this at IDEA-87099 , or at least to be able to add remotes. Currently you have to use the commandline or any other git client to manage remotes of a repository. If the remote is added though, you can push, pull, diff etc. with IntelliJ.

You can of course also simply edit .git/config from within IntelliJ to add the remote configuration without the need to execute any further commandline or GUI tool.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM