GIT "stop tracking" does not work using the source tree

I have some files related to my development on my machine. These files will not need to live. To do this, I did the following:

Right-click the Copy Workspace file and click Stop Tracking. The file goes up. From the bottom panel, I again clicked Stop Tracking from the panel up. The file is deleted from my disk.

I want to do all of this because, until I complete, I cannot pull out the code.

I tried all the possible actions available in sourcetree. But either he rewrote the live file, or deleted live, or deleted my copy, or overwritten my copy.

I just want to remove this file from tracking.

Any help is appreciated.

+4
source share
1 answer

You can add these files to your .gitignore file or to your global git ignore settings file.

See also http://git-scm.com/docs/gitignore

+2
source

Source: https://habr.com/ru/post/1523359/