由于下载仓库是有HTTPS,不是有SSH!!
解决方法:
命令:
git config --global credential.helper store
在用户的家目录下生成 .gitconfig 文件,内容以下
~/.gitconfig
[user]
name = '用户名'
email = '邮箱'
[credential]
helper = store
下次git push 时,要输入一次github的用户名和密码后,
再下一次以后就直接git push ,不再输入用户名和密码了!!!