ignoring a un-tracked and tracked file local changes in Git

Опубликовано: 16 Октябрь 2024
на канале: Junaid Ahmed
334
1

Ignoring local changes to a file that is already being tracked by Git
git update-index --verbose --skip-worktree README.md
git update-index --verbose --no-skip-worktree README.md
git ls-files -v . | grep ^S
H cached
S skip-worktree
M unmerged
R removed/deleted
C modified/changed
K to be killed
? other

A more detail guide can be found
http://blog.stephan-partzsch.de/how-t...