git 命令如下: #清除本地git所有缓存 git rm -r --cached . #添加本地所有文件 git add . #提交 git commit -m " .gitignore" #push到远程分支 git push origin master