how to add gitignore after upload code example Example: apply gitignore after commit git rm --cached $file