Clone GitHub Repository with Personal Access Token

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