aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
github |
public |
2022-09-09 14:13:39 -0700 |
2022-09-09 14:13:39 -0700 |
false |
20220909211339 |
false |
false |
|
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