Versions Compared

Key

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

...

To clone with the personal token,

Code Block
$ git clone https://${TOKEN}:x-oauth-basic@github.com/MyUser/MyRepo.git

And below is an exmple shell script based in zsh

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

...