visionmedia/git-extras — pull request #202 by julionc (2013-12-05 03:37:56+00:00)
Title: Protecting files in git repository with git-protect-file

The way to ignore certain files that are already committed is:

git update-index --skip-worktree filename

I thought that this shortcut might be useful to exclude/protect files from version control.

Usage:

git proctect-file config/database.yml