[英]Visual Studio Tools for Git commit system
I'm moving from Subversion to Git under Visual Studio 2012. In a small team we work with master branch shared across team members. 我在Visual Studio 2012下从Subversion迁移到Git。在一个小团队中,我们与master分支机构成员共享。
In Subversion when two team members change the same source file and there's no unsolved conflict the logic on commit is: 在Subversion中,当两个团队成员更改相同的源文件并且没有未解决的冲突时,提交的逻辑是:
In Git I have other behavior: 在Git我有其他行为:
This automatic commit don't allow change text (only when I get conflict to solve by hand). 此自动提交不允许更改文本(仅当我手动解决冲突时)。 Is that the correct way to work with Visual Studio Tools for Git?
这是使用Visual Studio Tools for Git的正确方法吗?
As long as a Commit has not been pushed to the remote and hasn't been shared with other team members you can change it using the Commandline. 只要未将提交推送到远程并且未与其他团队成员共享,您可以使用命令行进行更改。 Using
Git commit --amend
you can update the commit message locally before pushing it back to your Git repository . 使用
Git commit --amend
您可以在将提交消息推送回Git存储库之前在本地更新提交消息 。
This command hasn't been exposed using the Visual Studio UI in the current version of the Visual Studio Tools for Git, so for now the commandline is your only option. 在当前版本的Visual Studio Tools for Git中,尚未使用Visual Studio UI公开此命令,因此现在命令行是您唯一的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.