First time playing with git, and I accidentally added all hidden files with my commit. Now that I have set up my .gitignore, and committed my changes, all the files ending with “~” are still there.
How do I commit my local files, and remove those from master that are not supposed to be there any more?
Use
git rm --cached FILENAMEto delete it from the repository but keep the file physically andgit add FILENAMEto add a file to your repository. You will need to commit both of these changes withgit commit