目录
向github push数据,出现错误Failed to connect to github.com port 443: Operation timed out
push代码的时候报:remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
解决办法:使用personal access token进行验证
1. 获取personal access token
在https://github.com登陆,然后点击头像->Settings->Developer setting->Personal access tokens->Generate new token->Generate token 生成token
2.为Android studio添加access token进行github认证
Android Studio->Preferences->Version Contorl->github->+->Use Token
3. Sourcetree使用personal access token 登录GitHub
Sourcetree->选择一个项目进入->设置->远程仓库
其中url/路径:https://<your_token>@github.com/<USERNAME>/<REPO>.git
- <your_token>:换成你自己的token
- <USERNAME>:你的github用户名
- <REPO>:你的仓库名称
向github push数据,出现错误Failed to connect to github.com port 443: Operation timed out
有可能是没有在终端配置github的用户名和邮箱
$ git config --global user.name "username"
$ git config --global user.email "email"
参考以下资料:
github开发人员在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021.
sourcetree使用personal access token 登录GitHub
向github push数据,出现错误Failed to connect to github.com port 443: Operation timed out