简体   繁体   中英

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? I am having a really hard time using this new git experience thing. 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:

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. 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

Looks like the option to turn off the awful "new git experience" is gone from VS2022. And there is still no option to add a DevOps work item like you could in the Team Explorer.

Another example of M$oft not listening to their users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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