配置SSH后为啥每次上传到Github时还需要输入用户名和密码?
配置ssh,参考Git入门
使用了https方式 push
https方式:https://github.com/用户名/项目名.git
ssh方式:git://github.com/用户名/项目名.git
解决办法
在命令行中输入
git remote -v
显示以下内容,这表示是https方式的,因此需要改成ssh方式的。

将其换成ssh方式的
首先移除旧的https方式
git remote rm origin
添加新的ssh方式
git remote add origin [email protected]:用户名/项目名.git