...
- Log into GitHub
- Click your personal picture the the right hand menu and navigate to Settings → Developer settings → Personal access tokens → Generate new token
- You can select your required features, and below is for repository access
- If everything goes fine, you will get your token like below:
To clone with the personal token
Code Block |
---|
#!/bin/zsh
git config --global user.name "Chun Kang"
git config --global user.email "ck@ckii.com"
GITHUB_USER_TOKEN=your_user_token
git clone https://$GITHUB_USER_TOKEN:x-oauth-basic@github.com/ck/ck.io.git |