Before you authenticate, you must already have a GitHub or GitHub Enterprise account.
- For more information on creating a GitHub account, see "Signing up for a new GitHub account".
- For a GitHub Enterprise account, contact your GitHub Enterprise site administrator.
Authenticating to GitHub using the browser
-
In the upper-left corner of your screen, select the GitHub Desktop menu, then click Preferences.

-
In the Preferences window, select Accounts.

-
To the right of "GitHub," click Sign In.

-
In the Sign in pane, click Sign in using your browser.

-
To authenticate to GitHub, type your GitHub.com credentials and click Sign in.

Alternatively, if you were already logged in to GitHub, follow the prompts to return to GitHub Desktop to finish authenticating.
-
If you have configured two-factor authentication for GitHub, do one of the following:
- If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
- If you set up 2FA with a TOTP application, generate a 2FA code.
-
Return to GitHub. In the prompt, enter your 2FA code, then click Verify.

-
After GitHub authenticates your account, return to GitHub Desktop.
Authenticating to GitHub using your username and password
-
In the upper-left corner of your screen, select the GitHub Desktop menu, then click Preferences.

-
In the Preferences window, select Accounts.

-
In the Accounts pane, do one of the following:
- To authenticate to GitHub, under "GitHub.com" click Sign In.
- To authenticate to GitHub Enterprise, under "GitHub Enterprise" click Sign In.
-
To add a GitHub Enterprise account, type your credentials under "Enterprise server address," then click Continue.

-
To add a GitHub account, type your GitHub.com credentials and click Sign in.

-
If you have configured two-factor authentication for GitHub or GitHub Enterprise, do one of the following:
- If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
- If you set up 2FA with a TOTP application, generate a 2FA code.
-
Return to GitHub Desktop. In the prompt, enter your 2FA code, then click Sign in.

Authenticating to GitHub using the browser
-
In the upper-left corner of the window, select the File menu.

-
Click Options.

-
In the Options window, select Accounts.

-
To the right of "GitHub.com," click Sign in.

-
In the Sign in pane, click Sign in using your browser.

-
To authenticate to GitHub, type your GitHub.com credentials and click Sign in.

Alternatively, if you were already logged in to GitHub, follow the prompts to return to GitHub Desktop to finish authenticating.
-
If you have configured two-factor authentication for GitHub, do one of the following:
- If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
- If you set up 2FA with a TOTP application, generate a 2FA code.
-
Return to GitHub. In the prompt, enter your 2FA code, then click Verify.

-
After GitHub authenticates your account, return to GitHub Desktop.
Authenticating to GitHub using your username and password
-
In the upper-left corner of the window, select the File menu.

-
Click Options.

-
In the Options window, select Accounts.

-
In the Accounts pane, do one of the following:
- To authenticate to GitHub, under "GitHub.com" click Sign In.
- To authenticate to GitHub Enterprise, under "GitHub Enterprise" click Sign In.
-
To add a GitHub Enterprise account, type your credentials under "Enterprise server address," then click Continue.

-
To add a GitHub account, type your GitHub.com credentials and click Sign in.

-
If you have configured two-factor authentication for GitHub or GitHub Enterprise, do one of the following:
- If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
- If you set up 2FA with a TOTP application, generate a 2FA code.
-
Return to GitHub Desktop. In the prompt, enter your 2FA code, then click Sign in.
