use git rm command to remove the ~file