Github - 上传文件 [英] Github - uploading files

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

问题描述

我正在尝试将一个文件夹添加到github存储库。该文件在github上显示为空,并且上面有一个绿色箭头。有谁知道如何解决这个问题?我很感谢你的帮助。谢谢。

解决方案

这看起来类似于或 un-submodule git submodule in为了确保您摆脱了任何子模块引用。


I am trying to add a folder to a github repository. The file appears empty on github and has a green arrow on it. Does anyone know how to fix this problem? I would appreciate your help. Thanks.

解决方案

This seems similar to the "Git - how to track untracked content?", where a folder got added as a "gitlink":

Effectively you are using the internal feature that git submodule uses (gitlink entries) but you are not using the submodule feature itself.

That is what is represented by a green arrow in GitHub: a submodule, as shown in the GitHub submodule help page:

What you did is essentially adding the submodule content in your Git repo.
You may want to check "How do I remove a git submodule?" or "un-submodule a git submodule" in order to be sure you got rid of any submodule reference.

这篇关于Github - 上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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