【发布时间】:2026-02-05 19:40:01
【问题描述】:
我在 git....REPO1 和 REPO 2 中有 2 个存储库。我已经克隆了 REPO1,一切正常。我在项目(REPO1)中添加了 1 个额外的文件夹,我需要在 REPO2 的一个分支中签出/跟踪。我该怎么做。
我已经尝试过 git remote -v 和 git remote set-url origin https://github.com/user/repo2.git : How to change the URI (URL) for a remote Git repository?
但是当我从文件夹内执行 git 分支时,它仍然显示 REPO1 中的分支,而不是 REPO2。
【问题讨论】:
-
这能回答你的问题吗? Maintain git repo inside another git repo