标签: github directory
每当我尝试将文件夹添加到git hub时,它会“文件为空”我错过了什么?谁知道为什么?在我看来,我正在添加错误的文件夹。
答案 0 :(得分:2)
Git / GitHub不存储空目录。
惯例是将空.gitkeep文件放入其中。
.gitkeep
您需要更详细的技术说明吗? Check this answer
答案 1 :(得分:0)
find . -type d -empty -not -path '*/\.*' -exec touch {}/.gitkeep \;将忽略.git文件夹中的空目录
find . -type d -empty -not -path '*/\.*' -exec touch {}/.gitkeep \;