Step 3

Connect GitHub

You configured your commit author information in the Git installation step. If VS Code later asks you to sign in to GitHub, complete the authentication in your browser.

Check your GitHub account

If you do not have a GitHub account, follow the GitHub account setup guide first.

To change your commit author name or email, return to Set your commit identity in the Git installation guide.

Git records the author information you configured earlier in commits. In the browser sign-in window, check which GitHub account you are using.

Sign in when prompted

VS Code may ask you to sign in when you clone a private repository or push to GitHub. If prompted, choose the browser sign-in option and authenticate with the GitHub account you intend to use.

Older VS Code Connect to GitHub dialog with Sign in with your browser highlighted

Return to VS Code when browser authentication is complete. If you have not seen a sign-in request yet, continue to Create Repository.

Image preview