Remove Untracked Files From Git
To remove files from Git that you have previously committed and don't require anymore use the following command. Your Git status should show these files marked for deletion, and after commit they will be deleted anywhere you pull.
git rm --cached <file>
git rm -r --cached <directory>