移除项目里面的idea文件夹:git rm --cached

 

有时候忘了写.gitignore就把idea文件夹给提交了。

删除

// step1: cd 到项目下

// step2: 移除.idea
$ git rm --cached -r .idea
rm '.idea/misc.xml'
rm '.idea/modules.xml'
rm '.idea/vcs.xml'
rm '.idea/workspace.xml'

// step3: 
git add .
git commit -am "rm idea"
git push xxx

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章