Ignoring file changes without changing .gitignore
If don’t want to track changes at certain files without changing .gitignore you can achieve that by
git update-index --skip-worktree FILE_NAME
undo
git update-index --no-skip-worktree FILE_NAME
For more information visit page with docs
Tweet