-
-
Save vyach-vasiliev/8f98c96d19c621e8887e928ee2b5a61e to your computer and use it in GitHub Desktop.
Clone a GitHub repository using a Personal Access Token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GITHUB_USER=user | |
export GITHUB_TOKEN=secret | |
export GITHUB_REPOSITORY=owner/repo-path | |
git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} | |
# or | |
git clone ${GITHUB_TOKEN}@github.com/{GITHUB_REPOSITORY}.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment