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:<access_token><username>/<reponame>.git
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (0)