1、查看git仓库
ssh git@192.168.80.6
2、克隆
git clone git@192.168.80.6:仓库
3、添加远程地址
git remote add origin https:...
4、添加多个远程地址
git remote set-url --add origin https:...
5、推送至远程仓库
git push -u origin "master"
git push
6、更新远程库到本地
git pull
7.如果遇到类似错误,需要清理缓存
Add correct host key in~/.ssh/known_hosts to get rid of this message
ssh-keygen -R 12.29.2.3
阅读(240) | 评论(0) | 转发(0) |