简体   繁体   English

有一个只读的git repo从其他仓库中提取

[英]Have a read only git repo that pulls from other repos

So in our work environment we use Stash and we all have access via AD. 因此,在我们的工作环境中,我们使用Stash,我们所有人都可以通过AD访问。 Right now the problem I'm having is writing some cookbooks that can do a git checkout of a repository without having to use my own account and/or creating a read only AD account. 现在,我遇到的问题是编写一些可以对存储库进行git checkout的食谱,而不必使用我自己的帐户和/或创建只读AD帐户。 I was thinking of maybe having something along the lines of having a repo that is public (anyone can clone from), in which this repo pulls from certain other repos when changes are seen or at certain intervals. 我在考虑是否可能有一些公开的回购协议(任何人都可以从中复制),在该回购协议中,当看到更改或在一定的间隔内,此回购协议会从其他某些回购协议中提取。

Not sure if something like this is even possible but it would be awesome to not have to maintain two repos (internal and public) for the same content (chef recipes). 不知道这样的事情是否可能实现,但是不必为相同的内容(厨师食谱)维护两个存储库(内部和公共)会很棒。

Have a look at git submodule . 看看git 子模块 It is a solution to make a link between repos. 这是在回购之间建立链接的解决方案。

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

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