我在intelliJ中有一个与GitHub存储库同步的项目,我想将其更改为另一个存储库(同一个帐户)。
澄清一下:我在存储库R1上有项目A. 我有另一个存储库R2。
我想将项目A推送到存储库R2。
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.
最满意答案
您无法在IntelliJ中编辑Git遥控器。 有一个功能请求要在IDEA-87099添加,或者至少能够添加遥控器。 目前,您必须使用命令行或任何其他git客户端来管理存储库的远程数据库。 如果添加了遥控器,你可以用IntelliJ推,拉,差等。
您当然也可以从IntelliJ中简单地编辑.git/config以添加远程配置,而无需执行任何进一步的命令行或GUI工具。
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.
更多推荐
发布评论