这个绿色图标在github存储库中意味着什么? [英] What does this green icon mean in a github repository?

查看:133
本文介绍了这个绿色图标在github存储库中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个绿色图标在Github中意味着什么?我知道提交链接将我带到另一个存储库。我需要做类似的事情。这是一个符号链接吗?还是一个子模块?对于git还是有点新鲜的,我想知道如何自己复制它。一旦创建,我该如何更新这个外部依赖项?



解决方案

这是一个子模块:指向另一个特定提交的链接存储库位于不同的URL。当运行 git submodule update --init 时,将克隆该存储库,然后引用的提交( 784fd39 )将会

您可以使用 git submodule add< url>来创建子模块。 <目录> ,它会在当前工作目录中的指定目录中为给定的URL添加子模块引用。


What does this green icon mean in Github? I know the commit link takes me to another repository. I need to do something similar. Is this a symlink? Or a submodule? Being still somewhat new to git, I'm wondering how I can replicate this myself. Once created, how do I update this external dependency?

解决方案

This is a submodule: a link to a specific commit in another repository at a different URL. The repository will be cloned when git submodule update --init is run, and then the referenced commit (784fd39) will be checked out.

You can create submodules using git submodule add <url> <directory>, which will add a submodule reference for the given URL at the directory you specify, in the current working directory.

这篇关于这个绿色图标在github存储库中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆