当时创建.gitignore文件时候出现了一点小问题,大致是 Base:can not found.当时使用的是touch.gitignore命令。 解决方案:修改命令为touch .gitignore 注意其中touch后面的一个空格!