

For this option, click Set up using an app. The recommended method is to receive the code from a phone app, such as Authy, 1Password, or LastPass Authenticator. There are two options for receiving the two-factor authentication code.

learn how to set up a personal access token.learn how to set up two-factor authentication.

In this tutorial, we will show you how to enable two-factor authentication (optional) and generate a PAT. By mid-2021, Github will complete its transition to requiring a personal access token (PAT) key instead of a password to connect to Github remotely (e.g., using git on your local computer to work on remote branches).
