1.生成token:
登陆个人github,选择setttings-Developer setting-Personal access tokens-Generate new token-选择权限、时长
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配置)