“Jak zignorować już zaangażowane pliki w git” Kod odpowiedzi

Jak zignorować już zaangażowane pliki w 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 wyklucz niektóre pliki z git commit

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

Odpowiedzi podobne do “Jak zignorować już zaangażowane pliki w git”

Pytania podobne do “Jak zignorować już zaangażowane pliki w git”

Więcej pokrewnych odpowiedzi na “Jak zignorować już zaangażowane pliki w git” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu