问题:git的push和pull长时间没有反应,只有光标一直闪烁
原因:远程仓库地址错误
解决方案:
1:查看远程仓库命令:
git remote -v
运行后出现以下内容
origin git@gitlab.example.com:root/example.git (fetch) origin git@gitlab.example.com:root/example.git (push)
其中git@gitlab.example.com:root/example.git 这个得是git上的远程仓库地址
也就是下面图片的ssh,如果不对的话就需要重新设置
2:重新设置远程仓库地址步骤
2.1 git remote rm origin 删除现在的远程仓库地址
2.2 git remote add origin 远程仓库地址(也就是复制的ssh链接)
例如:git remote add origin git@gitlab.example.com:root/oaa.git



