0%

GitHub PAT

生成github PAT的流程 1. Settings → Developer Settings → Personal Access Token → Tokens (classic) → Generate New Token 2. 加入Note,勾选repo,admin:repo_hook等权限 3. For Linux, you need to configure the local GIT client with a username and email address,

1
2
$ git config --global user.name "your_github_username"
$ git config --global user.email "your_github_email"
4. Once GIT is configured, we can begin using it to access GitHub. Example:
1
2
3
4
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
> Cloning into `YOUR-REPOSITORY`...
Username: <type your username>
Password: <type your password or personal access token (GitHub)
5. Now cache the given record in your computer to remembers the token:
1
git config --global credential.helper cache
6. If needed, anytime you can delete the cache record by:
1
2
$ git config --global --unset credential.helper
$ git config --system --unset credential.helper