I'm new to Git so please bear with me. I initialized my repository and used 'git add .'
What happens if I delete a file and commit? Do I need to reuse 'git add .'? How do I ensure that when I push to master on github, the deleted file won't be there?
Use git rm
to delete a file and make Git recognize the deletion.
git rm path/to/file
git commit
git push
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