Skip to content

Commit

Permalink
Merge pull request #10291 from MicrosoftDocs/main638547879376696273sy…
Browse files Browse the repository at this point in the history
…nc_temp

For protected branch, push strategy should use PR and merge to target branch method to work around git push error
  • Loading branch information
learn-build-service-prod[bot] committed Jun 24, 2024
2 parents 7e1680e + e51ecb3 commit fab81da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified docs/ide/media/vs-2022/add-github-enterprise-account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ide/media/vs-2022/github-enterprise-endpoint-signin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/ide/work-with-github-accounts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Add GitHub accounts to your keychain
ms.date: 05/14/2024
ms.date: 05/20/2024
ms.topic: how-to
description: Add your public GitHub or GitHub Enterprise account to your Visual Studio keychain so you can track code changes in GitHub repositories from Visual Studio.
author: anandmeg
Expand Down Expand Up @@ -99,15 +99,15 @@ By default, Visual Studio only has public GitHub accounts enabled. Use the follo

::: moniker range="vs-2022"

1. To enable GitHub enterprise accounts, go to **Tools** > **Options** and search for the **Accounts** options.
1. To enable GitHub enterprise accounts, go to **Tools** > **Options** > **Accounts**.

:::image type="content" source="../ide/media/vs-2022/add-github-enterprise-account.png" alt-text="Screenshot of GitHub Account.":::

1. Then, check the box to **Include GitHub Enterprise Server accounts**. The next time you go to your **Account Settings** and try to add a GitHub account, you'll see options for both GitHub and GitHub Enterprise.
1. Then, check the box to **Include GitHub Enterprise accounts**. The next time you go to your **Account Settings** and try to add a GitHub account, you'll see options for both GitHub and GitHub Enterprise.

:::image type="content" source="../ide/media/vs-2022/github-enterprise-endpoint-signin.png" alt-text="Screenshot showing the Sign in with GitHub Enterprise.":::

1. After you enter your GitHub Enterprise server address, select **Sign in with your browser**. There, you can sign in using your GitHub Enterprise credentials.
1. After you enter your GitHub Enterprise URL, select **Sign in with your browser**. There, you can sign in using your GitHub Enterprise credentials.

> [!NOTE]
> To add an account to access `github.com` resources, such as `github.com/enterprises/*`, follow the [steps for adding public GitHub accounts](#adding-public-github-accounts).
Expand Down

0 comments on commit fab81da

Please sign in to comment.