简体   繁体   English

将git repo存储在repo中吗?

[英]Store git repo in a repo?

I have a repo that I save to bitbucket, which stores my project. 我有一个保存到bitbucket的存储库,用于存储我的项目。 For this project I'm relying on several tools such as Bootstrap. 对于这个项目,我依赖于多种工具,例如Bootstrap。 Inside my repo I cloned the Bootstrap repo and made some local edits, but it's not being picked up, how can I store a repo in a repo? 在我的仓库中,我克隆了Bootstrap仓库并进行了一些本地编辑,但是没有被提取,如何将仓库存储在仓库中?

Submodule is the answer, except you would need to reference a fork of the Bootstrap repo instead of the original Bootstrap repo, since you need to have to make modifications in it. 子模块是答案,除非您需要引用Bootstrap存储库分支而不是原始的Bootstrap存储库,因为您需要在其中进行修改。

You can fork a Bitbucket repo, but, in the off chance that Bootstrap isn't on Bitbucket, you can simply clone it locally, and push it back on an empty Bootstrap repo created by you on Bitbucket. 您可以派生一个Bitbucket存储库,但是如果Bootstrap不在Bitbucket上,则可以在本地克隆它,然后将其推回到您在Bitbucket上创建的空Bootstrap存储库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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