How to ignore existing file in Git?

Viewed 17154

I need to work on file.txt locally and in Git, with different content. I want Git not to tell me that there have been changes to that file.

Is this possible?

7 Answers
Related