如何在IDEA intelliJ中更改GitHub存储库(How to change GitHub repository in IDEA intelliJ)

编程入门 行业动态 更新时间:2024-10-27 14:34:17
如何在IDEA intelliJ中更改GitHub存储库(How to change GitHub repository in IDEA intelliJ)

我在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.

更多推荐

本文发布于:2023-07-15 21:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119289.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   IDEA   intelliJ   repository   change

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!