gpt4 book ai didi

git - 在另一个 git 仓库中维护 git 仓库

转载 作者:IT王子 更新时间:2023-10-29 01:23:51 24 4
gpt4 key购买 nike

这是我想要的:

REPO-A
/.git
/otherFiles
/REPO-B
/.git
/moreFiles

我希望能够将 REPO-A 的所有内容推送到 REMOTE-A,将 REPO-B 推送到 REMOTE-B。

可能吗?

最佳答案

听起来您想使用 Git submodules .

Git addresses this issue using submodules. Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.

关于git - 在另一个 git 仓库中维护 git 仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4659549/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com