赞
踩
github配置完SSH之后验证一直报错,检验了步骤也都是没问题的。然后尝试使用
Sourcetree
拉去代码,总是提示让输入密码。
Sourcetree一直提示如下内容:
- Password Required
-
- For user git on host github.com
ssh -T xxx@qq.com
去验证配置也是一直报错
kex_exchange_identification: read: Connection reset by peer
最终解决方案:
git clone git@github.com:xxx/xxxProduct.git
去拉去代码。
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,xx.xx.xx.166' (ECDSA) to the list of known hosts.
yes
,然后就会有如下提示。说明这下是真正的配置好了。
- git clone -b ants git@github.com:Ants-double/CareerJava.git
- git clone -b 远程分支名 仓库地址
-
- //查看远程分支
- git branch -r
- //创建本地分支并关联
- git checkout -b 本地分支 origin/远程分支
-
- //已有本地分支创建关联
- git branch --set-upstream-to origin/远程分支名 本地分支名
- //拉取
- git pull
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。