github web界面中的绿色文件夹图标是什么意思? [英] What does green folder icon in github web interface mean?

查看:254
本文介绍了github web界面中的绿色文件夹图标是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我当前的git仓库中添加一些文件夹。

但我已经在github下面的图片中收到了这样的绿色文件夹。

解决方案

我相信绿色文件夹代表github上的子模块。子模块本质上是链接到另一个版本的回购。



要在本地运行子模块:

  git submodule init 
git子模块更新

您可以阅读更多关于子模块的信息:
http://git-scm.com / book / en / Git-Tools-Submodules


I wanted to add some folder in my current git repo.

but i have received such green folder in the github the following image . How to add this folder into this project.

解决方案

I believe the green folders represent submodules on github. A submodule is essentially a link to a version of another repo.

To get the submodules locally run:

git submodule init
git submodule update

You can read more about submodules here: http://git-scm.com/book/en/Git-Tools-Submodules

这篇关于github web界面中的绿色文件夹图标是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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