Git removing deleted files from tracking

git

Solution

Use `git rm` to delete a file and make Git recognize the deletion.

git rm path/to/file
git commit
git push

Problem

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?

Original source