已经commit了,再加入gitignore是无效的,所以需要删除下缓存 git rm -r --cached ignore_file git rm -r 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交