How to Creating a personal access token, Personal API tokens in Github | How to use GitHub personal access token

Amit Kumar
2 min readOct 1, 2021

--

When i pushed code on GitHub its showing you don’t have Personal Access Token. When i try to push code on github its showing cURL method to authenticate (Creating a personal access token). I have tried this, but I still cannot push to GitHub.

So let’s go to solve this issues I hope it’s very helpfully for you.

1st step Login to Github and go to Setting section.

2nd In the left sidebar, click Developer settings.

3rd step In the left sidebar , click Personal access tokens.

4th Step Give Full controll of private repositories.

Select the scopes, or permissions, you’d like to grant this token. To use your token to access repositories from the command line, select repo.

5th Step Click on Generate to new Token

Now you personal Access token has been generated successfully.

To set your global username/email configuration:

Open the command line.

Set your username:
git config - global user.name "laravelamit"

Set your email address:
git config - global user.email "amitseo72@gmail.com"

Now all configutation and token generated successfully now you can pull and push code on GitHub.

I hope its helpfull for you. 👍👍

--

--

Amit Kumar
Amit Kumar

Written by Amit Kumar

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.

No responses yet