github本身不可以提交空文件夹。那么就需要使空文件夹不为空。 命令行进入工程目录下,输入下面这句话: find . -type d -empty -exec touch {}/.gitignore \; 就OK