摘要: 首先要强调一点,这个文件的完整文件名就是".gitignore",注意最前面有个“.”。 1. touch .gitignore 2. git rm -r --cached . git add . git commit -m "update gitignore" 阅读全文