How to add Access Token to your local git repo

shawon

Shawon Saha

Posted on April 1, 2024

How to add Access Token to your local git repo

Step 1: Clone your remote repo

  • Open terminal and type git clone <repo-url> .
  • Put your credential

Step 2: Update config

  • Open the local folder of your clone repo
  • Navigate to .git directory
  • Open config using any text editor
  • Edit the url of section [remote "origin"] like this way ```

[remote "origin"]
url = https://shawonsaha:@github.com//.git



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r2s9zaql6v325xv64r87.png)

Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
shawon
Shawon Saha

Posted on April 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related