Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log into GitHub
  2. Click your personal picture the the right hand menu and navigate to Settings → Developer settings → Personal access tokens → Generate new token





  3. You can select your required features, and below is for repository access


  4. 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