DEV Community

Shawon Saha
Shawon Saha

Posted on

4

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay