简体   繁体   English

如何在Qt Creator中禁用版本控制功能?

[英]How to disable version control features in Qt Creator?

I am using an independent version control management program (SmartGit) alongside Qt Creator, and I would prefer not to use Qt Creator for version control management. 我正在使用独立的版本控制管理程序(SmartGit)和Qt Creator,我宁愿不使用Qt Creator进行版本控制管理。

It is becoming a nuisance that Qt always prompts me regarding whether I'd like to add new files to Git (when I add new files to the Qt Creator project), and whether I'd like to remove files from Git (when I remove files from the project). Qt总是提示我是否要向Git添加新文件(当我向Qt Creator项目添加新文件时),以及我是否要从Git中删除文件(当我删除时)来自项目的文件)。

Earlier today, I mistakenly added a file to Git through Qt Creator when adding a new file to the Qt Creator project. 今天早些时候,在向Qt Creator项目添加新文件时,我错误地通过Qt Creator向Git添加了一个文件。 A few minutes later, I wished to temporarily remove the file from the project (likely to be re-added later). 几分钟后,我希望暂时从项目中删除该文件(稍后可能会重新添加)。 When I removed the file, Qt Creator dutifully asked me if I'd like to remove the file from version control - giving me a warning that the file might be removed permanently from the file system. 当我删除文件时,Qt Creator尽职地问我是否要从版本控制中删除该文件 - 向我发出警告,该文件可能会从文件系统中永久删除。 Understanding the risk, I nonetheless decided to test the behavior and I said "yes, remove the file from Git as well as removing it from the project". 理解风险,我仍然决定测试行为,我说“是的,从Git中删除文件以及从项目中删除它”。 Just as the warning forewarned, the file was removed from the file system and I then had to reconstruct it. 正如预警警告一样,文件已从文件系统中删除,然后我不得不重新构建它。

I could simply live with it and occasionally use Qt Creator's version control features in addition to SmartGit's, and/or I could use SmartGit directly to deal with any mistaken occasional uses ogreatf Qt Creator's version control features. 除了SmartGit之外,我可以简单地使用它并偶尔使用Qt Creator的版本控制功能,和/或我可以直接使用SmartGit来处理任何错误的偶然使用ogreatf Qt Creator的版本控制功能。 However, I'd rather simply disable Qt Creator's version control features entirely, for convenience. 但是,为了方便起见,我宁愿完全禁用Qt Creator的版本控制功能。

I looked through every Qt Creator option I could find in order to see if it is possible to disable Qt Creator's version control features (even if the project's files are under version control). 我查看了我能找到的每个Qt Creator选项,以查看是否可以禁用Qt Creator的版本控制功能(即使项目的文件受版本控制)。 Unfortunately, I cannot find an option to disable Qt Creator's version control features, anywhere. 不幸的是,我无法在任何地方找到禁用Qt Creator版本控制功能的选项。 A careful Google search also revealed nothing. 仔细的Google搜索也没有透露任何信息。

Is it possible to disable Qt Creator's version control features, even if the project's files are under version control? 即使项目的文件受版本控制,是否可以禁用Qt Creator的版本控制功能? If so, how is it done? 如果是这样,它是如何完成的?

帮助 - >关于插件...并取消选择版本控制插件。

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

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