Reputation: 1853
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?
Upvotes: 5
Views: 5710
Reputation: 526483
Use git rm
to delete a file and make Git recognize the deletion.
git rm path/to/file
git commit
git push
Upvotes: 10