Skip to content

Files

Latest commit

19b6109 · Feb 10, 2025

History

History
33 lines (30 loc) · 794 Bytes

File metadata and controls

33 lines (30 loc) · 794 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
clone-github-repository-with-token
github
public
2022-09-09 14:13:39 -0700
2022-09-09 14:13:39 -0700
false
20220909211339
false
false
clone
github
personal-access-token
token
Clone GitHub Repository with Personal Access Token
tech-note

Create a Personal Access Token (PAT) here. Then you can use it to clone a repository, and save the need for a private key. Especially helpful on a server.

# Clone a repository:
git clone https://<token>@github.com/owner/repo.git

# Clone a branch from a repository:
git clone --branch <branch-name> https://<token>@github.com/owner/repo.git