如何第一次推送文件但是从下​​次开始避免(从推送,因此拉)

I have a file named local.config.php,in my repo. I want this file to be fetched in git clone (ie first time pull only) and from next time , I don't want this file to be tracked. This file (after clone) should be treated as it is in .gitignore. Whenever anyone changes local.config.php on his computer (after taking clone of my repo), the git status should not show this file there to stage or commit.

You can either add file to .git/info/exclude or tell git not to track local changes:

git update-index --skip-worktree local.config.php

You can read more on git update-index here