Generate Personal Access Token in GitHub

 Generate Personal Access Token GitHub


To clone a private repository from your account or organization, you need to generate a PAT(Personal Access Token) on your Github account, and add it to the command above. *Organization doesn't have PAT generator.


This is how you generate a PAT on your Github account:

1, Go to "Settings":

2, Scroll down then go to "Developer settings":



3, Press "Personal access tokens" then press "Generate new token":



4, Fill "Note" then check "repo":

*If "repo" is not checked, you cannot clone a private repository.

5, Scroll down then press "Generate token":

6, Finally, a PAT is generated:

This is the command with the PAT generated above:



Post a Comment

0 Comments

Visual Studio