Removing deleted files form Git
In order to remove locally deleted or renamed files from the local git repository so that publishing it to git can clean up remote git repository can be accomplished by running git rm command as specified below.
git rm `git ls-files -d`