原因分析: 引起该错误的原因是目录中没有文件,空目录是不能提交上去的 解决办法: $ touch xxx $ git add -A . $ git commit –m ’xxx’ $ git push origin master 相关文章: