Git使用过程中出现的问题
问题描述:
SmartGit在clone远程仓库时,出现了Host key verification failed!错误导致clone失败!
解决办法:
1.在本地建好仓库后,在当前仓库目录右键打开gitbash。或者在git安装目录打开gitbash,切换到仓库目录。
2.检查name和email是否配置正确
git config --global user.name
git config --global user.email
例如结果显示:
zhangsan
zhangsan@xxx.com
3.输入命令:git clone 远程仓库地址
例如:
git clone git@172.18.3.103.OA/office-auto-doc.git
命令行会提示:
Are you sure you want to continue connecting(yes/no?)
输入yes回车即可
4.打开本地仓库,查看文件是否被clone下来,有即代表成功。
5.用当前目录右键用smartgit打开仓库即可。