How to ignore existing file in Git?

前端 未结 7 506
南笙
南笙 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:09

    enter image description here enter image description here

    All you need is to click the more button in sourcetree just at the right hand side of the filename, in the unstaged files section. Click ignore and make source tree perform your desired action for that file or all the files with the same type.

提交回复
热议问题