Undo git update-index --skip-worktree

Kevin Burke picture Kevin Burke · Jun 21, 2012 · Viewed 29.4k times · Source

A while ago I did this to ignore changes to a file tracked by git:

git update-index --skip-worktree <file>

Now I actually want to commit changes to that file to source. How do I undo the effects of skip-worktree?

Answer

Kevin Burke picture Kevin Burke · Jun 21, 2012

Aha! I simply want:

git update-index --no-skip-worktree <file>