title author date CreateTime categories
git 合并两个仓库
lindexi
2018-2-13 17:23:3 +0800
2018-2-13 17:23:3 +0800
git

好了还是回到问题,我想把两个git合并

首先用git bash 到我的一个仓库,作为需要合并的仓库

cd 仓库

添加我要合并仓库

# git remote add 仓库 仓库可以是远程仓库
git remote add lindexi git@github.com:lindexi/lindexi.github.io.git

从远程仓库下载,这时我们弄个新的

git branch lindexi
git checkout lindexi
git fetch lindexi
git merge lindexi/master
解决冲突
git add .
git commit -m "合并"
git push lindexi lindexi:master
git 我有两个仓库,一个是gitbook在写一本UWP入门,一个是放在github的垃圾,这个是我想要开个人网站,但是做的还是不行https://github.com/lindexi/lindexi.github.io结果发现我需要做html,本来的文件没法直接转过去,但是我又不想使用第三方工具,于是最后我想着自己来写一个,于是就做了winMarkdown,win10软件,不过已经几个月没做 好了还是回到问题,我想把两个git合并 <!--more--> <div id="toc"></div> 首先用git bash 到我的一个仓库,作为需要合并的仓库 ```csharp
cd 仓库

添加我要合并仓库

# git remote add 仓库 仓库可以是远程仓库
git remote add lindexi git@github.com:lindexi/lindexi.github.io.git

从远程仓库下载,这时我们弄个新的

git branch lindexi
git checkout lindexi
git fetch lindexi
git merge lindexi/master
解决冲突
git add .
git commit -m "合并"
git push lindexi lindexi:master
git checkout master
git merge lindexi
git branch -d lindexi

最新文章

  1. How can I terminate a thread that has a seperate message loop?
  2. Python3向网页POST数据
  3. easyui textarea IE8中无法换行
  4. There is a legend about a bird
  5. js 中&amp;&amp; 与 ||
  6. VS2008资源问题解决方法
  7. C++学习笔记1(标准的输入输出)
  8. 跨过Nginx上基于uWSGI部署Django项目的坑
  9. python 标准库 -- re
  10. vue-resource传参数到后端,后端取不到数据的问题
  11. Flask-Moment----探索
  12. Micropython TurnipBit 电子时钟 青少年编程入门
  13. /etc/security/limits.conf的相关说明
  14. spring cloud+.net core搭建微服务架构:服务注册(一)
  15. php获取数据库结构
  16. day9大纲
  17. MVC删除操作前confirm提示
  18. Jquery无缝轮播图的制作
  19. 给定一个十进制数,将其转化为N进制数-----17年滴滴笔试题
  20. 你正在从一个声称代表如下的证书颁发机构安装证书 alipay truest network,希望能知道程序是怎么实现的或相关资料

热门文章

  1. codevs1839 洞穴勘测
  2. 【NS2】NS2修改MAC协议(转载)
  3. 如何在WPF控件上应用简单的褪色透明效果?
  4. HashSet的运用
  5. LeetCode75 Sort Colors
  6. JVM 调优 —— GC 长时间停顿问题及解决方法
  7. Part17—触摸屏显身手—Part17.1—原理简介
  8. hdu 5744 Keep On Movin (2016多校第二场)
  9. Bert源码阅读
  10. Math.abs( x )