@diasjorge Your intention was unclear.
If your title was Excluding untracked files from git locally I'd never have made that comment. :)
@couto The actual purpose of .git/info/exclude is local repo specific ignore. It is not for tracked files.
Chk out the Repo exclude section of https://help.github.com/articles/ignoring-files it is to be used for files "that you don't expect other users to generate".
For tracker files the update-index functionality works better.
Also see http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html#_skip_worktree_bit for more info on how skip-worktree works and why it is different from the assume-unchanged bit.
I'd rather use
git update-index --skip-worktree SOME_FILE
Works better in most cases.
Nice trick for improved readability. But this will affect my application's performance & memory footprint if I start using it everywhere right?
Why not