1.vim .gitignore 2.寫入規(guī)則 3.esc :wq 保存退出 4.修改后要清除緩存 git rm -r --cached . git add . git commit -m 'update .gitignore'