Suppose that a friend and I are working on a file `work.txt`, which is located at a **github** repository. I want to make some comments on this file that are present on my local copy but don't get pushed when I update. Is this possible to do with **git**?

Imagine for example that this file is some code and I want to add as a comment some information about a function so that I remember that myself, but as my friend remembers what the function does very clearly he doesn't need the comment there. I would like this comment to appear in my local file but not in the repository. Moreover, I would like that when the file gets updated, the comment remains in the updated version in my local machine (otherwise I could simply keep a local copy and overwrite comments upon updates).