How do I copy folders on GitHub?
This question already has an answer here:
Git/GitHub doesn't store empty directories.
Convention is to put empty .gitkeep
file in it.
Do you need more detailed technical explanation? Check this answer
find . -type d -empty -not -path '*/.*' -exec touch {}/.gitkeep ;
will ignore empty directories inside the .git folder
上一篇: 如何在git中保留目录但不跟踪其更改?
下一篇: 我如何复制GitHub上的文件夹?