Git Access Personal Token

This entry shows how and why you need to generate Git Personal Token

Git Personal Token is required to interact with Git Server. It is different from the Git Account Password. The token can be created for a set period of time, and can also be “revoked”. Think of it like an access card. It is tied to your account but can be created, used for access, and deactivated.

Below we go over the steps to create and use the Gi Personal Token

1. Create a Git Account on the GitHub site

The diagram below shows that at the Git Server (hosted by GitHub), my account includes my encrypted password. The circle P is the encrypted password.

If you do not already have a GitHub account, you can follow  Set up a GitHub Account

2. Create a Git Remote Repo on the GitHub site

You can create an empty remote git repo by following this page https://shallwelearn.com/blog/create-a-new-github-repository/. The Cube R is a Git Remote Repository.

 

2. Create a Git Personal Token on the GitHub site

After you create a GitHub account, create a Git Personal Token by following this link https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-token

The Circle P is the encrypted password, the Cube R is a Git Remote Repository, and the Circle T is the personal access token, used to authorize access to the Git Remote Repository.

 

4. Clone the Git Repo to the Local Machine

Say the repo is called thewhale, and your username is fakemobydick. You can then clone thewhale repo by:

type “git clone https://fakemobydick@github.com/fakemobydick/thewhale.git”, then at the password prompt, use the user token in Step 3.

git clone https://fakemobydick@github.com/fakemobydick/thewhale.git
password for 'https://fakemobydick@github.com':

 

Reference

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-token