Git上传空文件夹

git上传的文件夹为空的时候html

1,先删除空的文件夹

参考:http://www.javashuo.com/article/p-rbsdeeft-kb.htmlgit

2,这个只能说是技巧不能说是方法,原理是在每一个空文件夹新建一个.gitignore文件,而后提交。

$ find . -type d -empty -exec touch {}/.gitignore ;
在项目根目录运行。htm

相关文章
相关标签/搜索