首页 > 其他 > 详细

GIT操作

时间:2018-01-24 21:08:16      阅读:236      评论:0      收藏:0      [点我收藏+]

一、git clone

从远程拷贝别人的库来使用

$ git clone <版本库的网址>
$ git clone  https://github.com/taotao8810/TianChi-Game.git

添加一个自己的远程仓库

$ git remote add origin https://github.com/taotao8810/xxxxx.git

 

如何去解决fatal: refusing to merge unrelated histories
先pull,因为两个仓库不同,发现refusing to merge unrelated histories,无法pull
因为他们是两个不同的项目,要把两个不同的项目合并,git需要添加一句代码

git pull origin master --allow-unrelated-histories

 

GIT操作

原文:https://www.cnblogs.com/yaowentao/p/8343076.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!