We need to remove it from your tracked records (all the more precisely, remove it from your arranging territory) and afterward submit. The git rm order does that, and furthermore removes the document from your working catalog so you don’t consider it to be an untracked record whenever around.