gitgub相关的问题
1. 访问github的权限问题
github 端生成token
github的账户设置界面,找到开发者设置

选择私有访问tokens

生成一个新的token

填写token名,选择该token的访问权限

生成token

- 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
Windows客户端增加凭证


之后有个密码验证,验证过了就行
2. ssh: connect to host github.com port 22: Connection timed out
1 | ssh: connect to host github.com port 22: Connection timed out |
检查SSH是否连接成功
1
2
3ssh -T git@github.com
报错
ssh: connect to host github.com port 22: Connection timed out配置文件
新建config文件

编辑配置文件
1
2
3
4
5
6Host github.com
User YourEmail@163.com #只需要改邮箱
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443执行
ssh -T git@github.com,输入yes即可。

之后就能上传代码了。