解决git连接问题: You‘ve successfully authenticated, but GitHub does not provide shell access.
情形1、生成新的ssh 密钥,添加到github里面中

ssh-keygen -t rsa 邮箱

三次enter,把生成的公钥添加到自己的github
私钥加上:

ssh-add 私钥位置

最后在所要同步的项目上:

git init

情形2、如果是新创建的项目:
先进入到对应的项目位置

git init
git remote add origin xxx.git(你项目的http git)
git clone xxx.git(你项目的http git)

情形3、如果不是,而是通过clone的:

git remote add origin xxx.git(你项目的http git)

更多推荐

GitHub does not provide shell access.