码迷,mamicode.com
首页 > 其他好文 > 详细

GIT操作

时间:2018-01-24 22:22:53      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:拷贝   ref   tor   game   span   nbsp   仓库   远程仓库   ast   

一、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操作

标签:拷贝   ref   tor   game   span   nbsp   仓库   远程仓库   ast   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!