1.生成token:
登陸個人github,選擇setttings-Developer setting-Personal access tokens-Generate new token-選擇權(quán)限、時長



2.配置遠程倉庫位置:
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
參考:
https://blog.csdn.net/weixin_41010198/article/details/119698015(帶背景和常見問題)
https://cloud.tencent.com/developer/article/1861466 (帶Jetbrains IDE配置)