How to ignore existing file in Git?

前端 未结 7 505
南笙
南笙 2021-02-05 19:31

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条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 20:26

    In Eclipse Luna, this can be done [with EGit plugin I think] by doing this: right-click file -> Team -> Advanced -> Assume unchanged

提交回复
热议问题