author | ms.author | ms.date | ms.topic | ms.service | ms.subservice |
---|---|---|---|---|---|
vijayma |
vijayma |
10/18/2022 |
include |
azure-devops-repos |
azure-devops-repos-git |
You can link work items to commits by adding #ID into the commit message. For example, the commit message "Fix bug #12 Missing icons in the reporting tools" would link work item 12 to the commit when the commit is pushed to Azure Repos.
:::image type="content" source="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/add-related-work-item-git.png" border="true" alt-text="Screenshot of a work item linked to a commit in the 'Git Changes' window in Visual Studio." lightbox="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/add-related-work-item-git-lrg.png":::