[英]Visual Studio 2017 - How to Disable Auto Commit When I “Add Solution to Source Control”
With Visual Studio 2013 I didn't have this problem. 使用Visual Studio 2013,我没有这个问题。
When I add my solution to Git Source Control (Right click -> Add Solution to Source Control) it automatically commits my project. 当我将解决方案添加到Git Source Control时(右键单击->将解决方案添加到Source Control),它将自动提交我的项目。
I don't want to do that because I want to set my own first commit message. 我不想这样做,因为我想设置自己的第一条提交消息。 I want to set "First Commit" (for example) instead of "Add Project Files" which is the default message from VS2017.
我想设置“首次提交”(例如),而不是“添加项目文件”(这是VS2017的默认消息)。
How can I disable auto commit? 如何禁用自动提交?
Rather than look into change how VS works, why not try to actually solve the problem you have. 与其尝试改变VS的工作方式,不如不尝试实际解决您遇到的问题。 I can see at least two easy solutions that involve absolutely no VS behavior changes:
我可以看到至少两个简单的解决方案,这些解决方案绝对不涉及VS行为更改:
git init
, git add
, git commit
, so you're in absolute control over what happens git init
, git add
, git commit
,因此您可以完全控制发生的事情 git commit --amend
to change the message to your desired one. git commit --amend
将消息更改为所需的消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.