Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Your resulting command should look something like:

git clone https://ghp_aWwY1ssbR3adCrumbSdtYlMxNCOqQs40MxJ0@github.com/johnsonbk/my_private_repository

Adding a personal access token after a repository has already been cloned

If you've already cloned without including the personal access token in the command, you can add it after the fact using the following syntax:

git remote set-url https://<PERSONAL ACCESS TOKEN>@github.com/<GITHUB ACCOUNT/<REPOSITORY>

Your resulting command should look something like:

git remote set-url https://ghp_aWwY1ssbR3adCrumbSdtYlMxNCOqQs40MxJ0@github.com/johnsonbk/my_private_repository