问题:git的push和pull长时间没有反应,只有光标一直闪烁
原因:远程仓库地址错误
解决方案:
1:查看远程仓库命令:
git remote -v
运行后出现以下内容
origin gitample:root/example.git (fetch)
origin gitample:root/example.git (push)
其中gitample:root/example.git 这个得是git上的远程仓库地址
也就是下面图片的ssh,如果不对的话就需要重新设置
2:重新设置远程仓库地址步骤
2.1 git remote rm origin 删除现在的远程仓库地址
2.2 git remote add origin 远程仓库地址(也就是复制的ssh链接)
例如:git remote add origin gitample:root/oaa.git
本文发布于:2024-02-02 12:30:29,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170684823043811.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |