How do I copy folders on GitHub?

This question already has an answer here:

  • How can I add an empty directory to a Git repository? 28 answers

  • 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

    链接地址: http://www.djcxy.com/p/7882.html

    上一篇: 如何在git中保留目录但不跟踪其更改?

    下一篇: 我如何复制GitHub上的文件夹?