WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Removing swap files from your git project

Submitted by barnettech on Tue, 12/17/2013 - 13:12

git ls-files | grep '\.swo$' | xargs git rm -f

and

git ls-files | grep '\.swp$' | xargs git rm -f