来自github的Git仓库清空绿色文件夹 [英] Git repository from github empty green folder

查看:490
本文介绍了来自github的Git仓库清空绿色文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github上拉了一个git仓库。
当我克隆回购时,有一个应该包含项目的空文件夹。由于其他项目是指这个文件夹。



当我浏览github上的回购文件夹时,文件夹显示为绿色。



有什么我失踪的?



我正在使用

  git clone https://github.com/TomTasche/Announcify.droid.git 

该命令可以正常工作,并且可以成功将repo克隆到我的机器上,但该绿色文件夹是空的,剩下的代码可以正常下载。



检查此页面的回购
https://github.com/TomTasche/Announcify .droid

解决方案

它是一个子模块。在你签出的项目中执行 git submodule update --init ,它应该能够解决这个问题。



在最新版本的克隆操作有一个 - 递归选项来自动初始化子模块,但我不认为大多数工具都在使用它。



git子模块init dirname git子模块更新--init 是创建本地副本的正常命令。



有关子模块的更多信息,请参阅 git book msysgit )进行比较。在该项目中,git文件夹是一个子模块。


I am pulling a git repository from github. When I clone the repo there is one empty folder which should have contained a project. Since other projects are referring to this folder.

When I browse the repo on the github the folder shows in green color.

Is there something that I am missing ?

I am using

git clone https://github.com/TomTasche/Announcify.droid.git

The command works and it clones the repo successfully to my machine, but that green folder is empty , the rest of code is downloaded fine..

check this page of repo https://github.com/TomTasche/Announcify.droid

解决方案

It is a submodule. In your checked out project do git submodule update --init and it should fix things.

In the latest versions of git the clone operation has a --recursive option to automatically initialize the submodules but I don't think most tools are using this yet.

git submodule init dirname and git submodule update --init are the normal commands to create the local copy.

See the git book for more about submodules.

Looking closely at the linked repository - I think you might need to contact the author and get them to commit the .gitmodules file in the toplevel folder as that is where the submodule initialization configuration is stored. Here is a link to another project that has a submodule (msysgit) for comparison. In that project, the git folder is a submodule.

这篇关于来自github的Git仓库清空绿色文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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