How do I add an empty directory in Git?
This question already has an answer here:
The easiest way I found to accomplish this is by adding a simple empty file within each directory. Since this is being hosted on GitHub (Enterprise in my case), a very useful file to have around is a README.md file.
Obviously, you could then put whatever markdown you want in each of those README files to describe the contents at each layer of the repository. For just getting the folders to show up though, an empty README shall suffice.
链接地址: http://www.djcxy.com/p/7868.html上一篇: 使用jgit在远程存储库中创建文件夹
下一篇: 我如何在Git中添加一个空目录?