Skip to content

Commit e97e1b9

Browse files
Merge pull request #10474 from MicrosoftDocs/main638665130661313331sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents ceafbb8 + e210461 commit e97e1b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/version-control/git-with-visual-studio.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ To personalize your Git settings at a repository level as well as at a global le
7676

7777
## Productivity enhancements
7878

79+
In Visual Studio 2022 **version 17.12**, you can select any section of code, and then right-click, expand the Git submenu, and choose **Copy GitHub Permalink** (or **Copy AzureDevOps Permalink**) to generate a [GitHub Permalink](https://docs.github.com/repositories/working-with-files/using-files/getting-permanent-links-to-files) or Azure DevOps Permalink and copy it to the clipboard. From there, you can paste it anywhere a link might be used, in the browser, or share it over email, chat sessions, and documents. You can also do the same within the embedded commit details view in the **Git Repository** window. This feature allows you to reference specific code from previous commits without switching branches. You must be [signed in to Visual Studio](../ide/signing-in-to-visual-studio.md) with an account with the Git hosting provider, GitHub or Azure DevOps.
80+
7981
In Visual Studio 2022 [**version 17.6**](/visualstudio/releases/2022/release-notes-v17.6), you can [search](https://devblogs.microsoft.com/visualstudio/git-tooling-preview-features-to-enhance-productivity/#improved-search-for-related-github-issues-and-azure-devops-work-items) for and [link](https://devblogs.microsoft.com/visualstudio/reference-github-issues-and-pull-requests-in-visual-studio/) to GitHub Issues and Azure DevOps work items. See the [**Git Features to Enhance Productivity**](https://devblogs.microsoft.com/visualstudio/git-tooling-preview-features-to-enhance-productivity/) blog post.
8082

8183
::: moniker-end

0 commit comments

Comments
 (0)