git delete ignored files/folders

  • Delete the file
    find .-name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
  • Delete the folder and its files
    find .-name .idea -print0 | xargs -0 git rm -r -f --ignore-unmatch

  • git commit -m 'del ignore file'
  • git pull
  • git push origin master

Guess you like

Origin blog.51cto.com/xuguohongai/2544657