Resync git repo with new .gitignore file

前端 未结 3 2165
感动是毒
感动是毒 2020-12-12 09:10

Is it possible to \"refresh\" a git repository after updating the gitignore file?

I just added more ignorations(?) to my gitignore and would like to remove stuff alr

3条回答
  •  感情败类
    2020-12-12 09:18

    I might misunderstand, but are you trying to delete files newly ignored or do you want to ignore new modifications to these files ? In this case, the thing is working.

    If you want to delete ignored files previously commited, then use

    git rm –cached `git ls-files -i –exclude-standard`
    git commit -m 'clean up'
    

提交回复
热议问题