Skip to content

Commit 67b623d

Browse files
author
张磊
committed
更新文章
1 parent b864e18 commit 67b623d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

_posts/2018-01-16-Git常用命令记录.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ share: true
3636
### 推送空的分支到某个远程分支,等同与删除远程分支。
3737
git push origin :<Branch Name>
3838

39+
## 在A分支基础上创建出B分支
40+
41+
git checkout -b <Branch B> <Branch A>
42+
43+
## 切换分支
44+
45+
git checkout <Branch Name>
46+
47+
## 合并分支
48+
49+
git merge <Branch Name> # 合并分支
50+
git merge --no-ff <Branch Name> # 合并分支,且保留版本演进记录
3951

4052
# 标签
4153

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: post
3+
title: "团队合作开发资料整理(长期更新)"
4+
description: ""
5+
category: articles
6+
tags: [team, 团队]
7+
image:
8+
feature:
9+
credit: Michael Rose
10+
creditlink: http://mademistakes.com
11+
comments: true
12+
share: true
13+
---
14+
15+
## 版本管理
16+
17+
* [Git分支管理策略](http://www.ruanyifeng.com/blog/2012/07/git.html)

0 commit comments

Comments
 (0)