如何创建一个包含文件的子文件夹的git仓库? [英] how to create a git repo with subfolders that contain files?

查看:128
本文介绍了如何创建一个包含文件的子文件夹的git仓库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当推送我的本地回购(它是由包含我的文件的多个子文件夹组成)到github时,文件夹的名称列在github回购中,但它们不被指定为文件夹/没有任何文件他们,我可以访问...我怎么能得到这个工作?

解决方案

检查您的子文件夹)包含一个 .git /



这会使它们嵌套git repo(甚至 submodule ,如果你的主repo中有.gitmodule) p>

因此,他们的 gitlink (( 索引中的特殊条目)将在GitHub上显示为空的灰色文件夹。


when pushing my local repo (which is composed of multiple subfolders that contain my files) to github, the names of the folders are listed on the github repo but they aren't designated as folders/don't have any files in them that I can access... How can I get this to work?

解决方案

Check if your subfolder (that you are pushing) include a .git/ in them.

That would make them nested git repo (or even submodule, if you have a .gitmodule in your main repo)

As such, their gitlink (special entry in the index) would be shown on GitHub as an empty gray folder.

这篇关于如何创建一个包含文件的子文件夹的git仓库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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