DEV Community

Shawon Saha
Shawon Saha

Posted on

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

Top comments (0)