简体   繁体   English

GIT“停止跟踪”无法使用源树工作

[英]GIT “stop tracking” not working using source tree

I have some files specific to my development on my machine. 我的机器上有一些特定于我开发的文件。 That files would not need to go on live. 那些文件不需要继续直播。 To do so I did the following: 为此,我做了以下事情:

Right clicked the file "Working copy section" and clicked Stop Tracking. 右键单击文件“工作副本部分”,然后单击停止跟踪。 The file goes upward. 文件向上。 From the upward panel I again clicked "Stop tracking" from the upward panel. 从向上面板我再次点击向上面板上的“停止跟踪”。 The file delete from my disc. 文件从我的光盘中删除。

I want to do all this because until I do not commit I can't pull the code. 我想做所有这些因为直到我不提交我不能拉代码。

I tried with every possible actions available in sourcetree. 我尝试了sourcetree中可用的所有可能操作。 But either it overwrote the live file or delete the live or delete my copy or overwrote my copy. 但要么是覆盖了实时文件,要么删除了实时文件,要么删除我的副本,要么覆盖我的副本。

I just want to remove that file from tracking. 我只是想从跟踪中删除该文件。

Any kind of help is appreciated. 任何形式的帮助表示赞赏。

You can add those files to your .gitignore file, or to your global git ignore settings file. 您可以将这些文件添加到.gitignore文件或全局git ignore设置文件中。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM