摘要: 出现这个问题是因为远程代码与本地没有任何相关的历史,往往出现在直接拷贝了一份代码,然后想与远程建立联系的情况下。 可以使用以下命令: 如果是在push则: git push origin master --allow-unrelated-histories 如果实在pull则: git pull o 阅读全文
posted @ 2019-05-26 00:19 liuqd001 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 命令如下: git fetch --all git reset --hard origin/master git pull 阅读全文
posted @ 2019-05-26 00:14 liuqd001 阅读(2933) 评论(0) 推荐(0) 编辑
摘要: 今天居然碰到了这个问题,解决方案如下: 1.查看添加的公钥 命令:ssh-add -l 如果返回结果为:Could not open a connection to your authentication agent.则进行第二步 2.打开身份验证代理,依次执行 ssh-agent eval `ss 阅读全文
posted @ 2019-05-26 00:02 liuqd001 阅读(1185) 评论(0) 推荐(0) 编辑