美文网首页
git pull无效

git pull无效

作者: web_柚子小记 | 来源:发表于2019-10-25 22:10 被阅读0次

    很长时间没用了,突然发现git pull没有任何反应,也不报错。打印git log,发现commitId也不对。
    记录一下最后解决的办法:

    1. cd ~/.ssh
    2. vi id_rsa.pub
    3. 将公钥重新添加到仓库个人设置的SSH Public Keys中
      这时发现commitId已经正确了,但是git pull还是没有反应
    4. 执行git remote -v,复制下git url
    5. 执行git remote remove
    6. 执行git remote add origin %url%
    7. git pull成功

    所以,应该是公钥过期了

    相关文章

      网友评论

          本文标题:git pull无效

          本文链接:https://www.haomeiwen.com/subject/bpievctx.html