On Tue, Jan 5, 2010 at 5:20 PM, H.J. Lu <hjl.tools@xxxxxxxxx> wrote: > > Yes, I want those files in repository. They are for my personal use only. If you modified some file locally and do not want to see and commit those modifications, you may want to use: git update-index --assume-unchanged foo After that, git will not notice any change to `foo'. So, 'git diff' and any other command (such git commit -a) will ignore those changes. Warning: using --assume-unchanged may result in losing your changes if you switch between branches containing different versions of 'foo'. Normally, when you try to do that, git will not allow switch to another branch saying that `foo' is modified. But using --assume-unchanged disables this check. But if you have the same `foo' on all branches then switching between branches will preserve your modifications. Dmitry -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html