Add .gitignore for files ending in a tilde and remove such existing files