Git ignorovat změny lokálních souborů

Příklady kódu

1
0

git ignorovat změny lokálních souborů

# To skip local changes to files managed by git
$ git update-index --skip-worktree path/to/file
# To restore normal git behaviour
$ git update-index --no-skip-worktree path/to/file

# assume-unchanged can also be used, it's designed for local files that DON'T change
# git reset --hard will drop files ignored through assume-unchanged
$ git update-index --assume-unchanged path/to/file
$ git update-index --no-assume-unchanged path/to/file

Související stránky

Související stránky s příklady

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................