Removendo arquivo do Git
Fazer a remoção do arquivo git local, basta executar o comando abaixo.
$ git rm arquivo.txtCaso seja apresentada uma mensagem de erro como essa:
error: the following file has changes staged in the index:
arquivo.txt
(use --cached to keep the file, or -f to force removal)Será necessário executar um argumento a mais para remover o arquivo.
$ git rm --cached arquivo.txt