GitHub文件夹上有一个白色箭头 [英] GitHub folders have a white arrow on them

查看:3258
本文介绍了GitHub文件夹上有一个白色箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近推送到github,并在我的一个文件夹中看到一个白色箭头.

I have recently pushed to github, and see a white arrow on one of my folders.

,当我单击该文件夹时,它不会打开它.在我的本地计算机上,它具有内容,但是在github中,我无法访问它们.这是什么意思?

and when i click on the folder, it does not open it. On my local machine, it has contents, but in github i cannot access them. What does this mean?

推荐答案

检查本地文件夹中是否有.git/子文件夹.

Check if locally you have a .git/ sub-folder under that folder.

这将意味着该文件夹(本地)是一个嵌套Git存储库,其树SHA1被记录为"gitlink"(带有白色直箭头的灰色文件夹)

That would mean the folder (locally) is a nested Git repository, whose tree SHA1 is recorded as a "gitlink" (gray folder with straight white arrow)

然后您将在GitHub上看到的是gitlink:超级项目希望嵌套的Git存储库(或子模块)的工作目录位于的提交的对象名称.

What you would then see on GitHub is that gitlink: the object name of the commit that the super-project expects the nested Git repository (or submodule)'s working directory to be at.

如果看到folder @ xxx,则它是子模块条目,这意味着您自己的存储库中有一个.gitmodules,除了gitlink之外,它还记录远程存储库的实际URL.

If you see a folder @ xxx, then it is a submodule entry, meaning your own repository has a .gitmodules in it, which records, in addition of the gitlink, the actual URL of the remote repository.

git clone --recurse-submodules 将恢复该子模块的内容(与嵌套的Git存储库相对,该存储库的URL 被记录,并且文件夹的内容将保持空白)

A git clone --recurse-submodules would restore the content of that submodule (as opposed to a nested Git repo, where its URL is not recorded, and the content of the folder would remain empty)

这篇关于GitHub文件夹上有一个白色箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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