简体   繁体   English

如何在新 Visual Studio 2019 的新 git 体验界面中添加要提交的工作项

[英]How to add work item to commit in new git experience interface in new Visual Studio 2019

Quick Question for Visual Studio 2019 Version 16.8.3, How do you connect the work item to the commit in the new git changes tab? Visual Studio 2019 版本 16.8.3 的快速问题,如何将工作项连接到新 git 更改选项卡中的提交? I am having a really hard time using this new git experience thing.我很难使用这个新的 git 体验的东西。 I can see my work item in team explorer but no idea how to add this work item to the commit in this new interface.我可以在团队资源管理器中看到我的工作项,但不知道如何在这个新界面中将此工作项添加到提交中。 Usually, there will be a button to add related work items when committing the files in the previous version.通常,在之前的版本中提交文件时,会有一个添加相关工作项的按钮。 Please someone help me out?请有人帮帮我吗?

it look like you can just use hashtag '#' in commit message,看起来您可以在提交消息中使用主题标签“#”,

That is the recommended syntax.这是推荐的语法。
Example:例子:

Fix a bug #1234

That would actually close the work item实际上会关闭工作项

See more at " Drive Git development from a work item " You can link a work item to commits but also other objects:在“ 从工作项驱动 Git 开发”中查看更多信息 您可以将工作项链接到提交,也可以链接到其他对象:

The link types you can add within the development section are Branch, Build, Changeset, Commit, Found in build, Integrated in build, Pull Request, and Versioned Item.您可以在开发部分添加的链接类型是分支、构建、变更集、提交、构建中找到、构建中集成、拉取请求和版本化项目。

https://docs.microsoft.com/de-de/azure/devops/boards/queries/media/link-tracking-artifact-to-artifact-link-types.png?view=azure-devops

You could also turn of the preview of the new Git features.您还可以关闭新 Git 功能的预览。 TOOLS=> OPTIONS => search for preview => checkbox工具 => 选项 => 搜索预览 => 复选框

settings设置

If you like the preview feel free to keep using it of course.如果您喜欢预览版,当然可以继续使用它。 Personally I'm not really digging it.就我个人而言,我并没有真正挖掘它。

MSblogPostAndReasons MSblogPostAndReasons

Looks like the option to turn off the awful "new git experience" is gone from VS2022.看起来关闭可怕的“新 git 体验”的选项从 VS2022 中消失了。 And there is still no option to add a DevOps work item like you could in the Team Explorer.而且仍然没有像在 Team Explorer 中那样添加 DevOps 工作项的选项。

Another example of M$oft not listening to their users.另一个 M$oft 不听用户的例子。

暂无
暂无

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

相关问题 Visual Studio 2019-如何添加Git远程 - Visual Studio 2019 - How to add Git remote Visual Studio 2019 在创建新的 Git 存储库时没有 GitLab 选项 - Visual studio 2019 no option for GitLab when creating a new Git repository Visual Studio是否可以将工作项链接到git提交? - Can Visual Studio require a work item be linked to a git commit? 如何从新的 git Visual Studio 2019 克隆特定分支(不是从命令)? - How to clone a specific branch from new git Visual Studio 2019 (not from command)? 如何从任何地方添加* all * new / modified文件到git? (比如`git add -A`,或者`git commit -a`用于新文件) - How to add *all* new/modified files to git, from anywhere? (like `git add -A`, or `git commit -a` for new files) git的新手— git add / commit / push / pull - New to git — git add/commit/push/pull 添加新的外部Git存储库连接 - Visual Studio Team Services - Add New External Git Repository Connection - Visual Studio Team Services 在 Visual Studio 中从过去的提交创建新的 git 分支时,如何处理数组越界异常? - How do I deal with the array out of bounds exception when creating a new git branch from a past commit in Visual Studio? 如何在新系统中使用 Visual Studio 项目复制我的 git 分支并并行工作 - How to replicate my git branch with visual studio project in a new system and work paralelly GIT:如何将忘记的提交(在 master 中)添加到新分支 - GIT: How to add a forgotten commit (in master) to a new branch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM