Aplicando las reglas de gitignore a archivo ya "trackeado"
git rm --cached <file> git commit -m "gitignore file works" git push -u origin master