- 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
git delete ignored files/folders
Guess you like
Origin blog.51cto.com/xuguohongai/2544657
Recommended
Ranking