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