Plenty of ways to remove them:
git ls-files | grep '.pwc$' | xargs git rm
find . -name *.pwc | xargs git rm
Note: If you haven't committed them, just use rm
, not git rm
.
To ignore them in the future, simply add *.pwc to the .gitignore. (If you don't have one, create a file named .gitignore at the top level of your repository, and just add a single line saying "*.pwc")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…