“Como ignorar arquivos já comprometidos no git” Respostas de código

Como ignorar arquivos já comprometidos no git

# Remove the files from the index (not the actual files in the working copy)
$ git rm -r --cached .

# Add these removals to the Staging Area...
$ git add .

# ...and commit them!
$ git commit -m "Clean up ignored files"
Brave Bear

Git exclui alguns arquivos do Commit Git

To exclude some files from git commit
-----------------------------------------------
syntax  - git update-index --assume-unchanged <filepath>
example - git update-index --assume-unchanged default/config.php

To undo the above command
-----------------------------------------------
syntax  - git update-index --no-assume-unchanged <filepath>
example - git update-index --no-assume-unchanged default/config.php
Xenomorph

Respostas semelhantes a “Como ignorar arquivos já comprometidos no git”

Perguntas semelhantes a “Como ignorar arquivos já comprometidos no git”

Mais respostas relacionadas para “Como ignorar arquivos já comprometidos no git” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código