Remove ~ files and add .gitignore to prevent re-adding them