iOS 重提git
1、创建新仓库
2、配置ssh密钥:(cd .ssh) 进入ssh,(ls)查询,(cat id_rsa.pub)显示ssh密钥
3、打开项目文件夹command + shift + . 显示隐藏文件并删除
4、cd到项目(git init)初始化,(git remote add origin git@xxxxx),(git add .),(git push origin master)提交
5、如果报错:Please contact your system administrator.
Add correct host key in /Users/tyl/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/tyl/.ssh/known_hosts:1
ECDSA host key for git.jiuji.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
解决:先移除(rm /Users/tyl/.ssh/known_hosts)再(git push origin master)
本文标题:iOS 重提git
本文链接:https://www.haomeiwen.com/subject/llleeqtx.html
网友评论