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 FILENAME
to delete it from the repository but keep the file physically and git add FILENAME
to add a file to your repository. You will need to commit both of these changes with git commit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With