使用个人访问令牌,
配合 https
才是正理
官方文档
https://docs.github.com/cn/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
对于已经存在的仓库
git push https://username:password@github.com/username/repository.git
等价于
git push https://username:password@github.com/org/repository.git
等价于
git push https://username:your_token@github.com/username/repository.git
例子
git push https://Deng:mr@github.com/PasteLeChien/gl.git