Skip to content

Instantly share code, notes, and snippets.

Use personal access tokens on github

新的 github 访问安全策略, github 禁止了使用 password over https 的方式访问.

like this:

https://username:password@github.com/username/gitrepos.git

从安全的设计来看, 不应该每次连接使用账户密码对来直接访问 github. 新的推荐方式是 token over https.