Appearance
an editor opened by 'git commit'. Please make sure all processes
可能是上次提交时网络异常,造成index.lock文件没有删除,所以手动 .git/index.lock文件即可j
ssh: connect to host github.com port 22: Connection refused
向github推送代码时显示上面的错误,首先创建文件 ~/.ssh/config
,然后添加以下内容
Host github.com
User 你的github邮箱
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
Failed to connect to github.com port 443
首先访问ipaddress.com 获取 github 的ip地址
这个网站有可能你访问不了,你要自己想想办法了

然后在修改 hosts 文件,添加记录
140.82.113.3 github.com