1.http链接失败:
现象:
-
“Permission denied (publickey).
- fatal the remote hang up unexpectly
原因:http链接失败
解决方法:
1)生成ssh密钥
2)然后将公钥拷贝到gitup配置之中。
“Account Settings” > Click “SSH Public Keys” > Click “Add another public key”
3)修改本地配置
-
edit
.git/config
file under your repo directory -
find
url=
entry under section
[remote “origin”]
-
change it from
url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git
to
url=ssh://git@github.com/derekerdmann/lunch_call.git
. that is, change all the texts before
@
symbol to
ssh://git
-
Save
config
file and quit. now you could use
git push origin master
to sync your repo on GitHub
版权声明:本文为trochiluses原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。