Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (master)
$ git checkout -b dev
Switched to a new branch 'dev'
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (dev)
$ git add readme.txt
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (dev)
$ git commit -m"no fast forward"
[dev 9649442] no fast forward
1 file changed, 1 insertion(+)
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (dev)
$ git branch
* dev
master
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (dev)
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (master)
$ git merge --no-ff -m"merge with no ff" dev
Merge made by the 'recursive' strategy.
readme.txt | 1 +
1 file changed, 1 insertion(+)
Elsa@LAPTOP-FTJ9AMAJ MINGW64 ~/Desktop/learn-git (master)
$ git log --graph --pretty=oneline --abbrev-commit
* ffb4a96 (HEAD -> master) merge with no ff
|\
| * 9649442 (dev) no fast forward
|/
* 4272c0d (origin/master) conflict fixed
|\
| * eff9d7a & simple
* | d51da50 and simple
|/
* 181497a branch test
* 94ef284 remove test.txt
* 728c967 remove ssh txt
* 4dc6454 added github ssh txt
* b68870d added a new test txt file.
* 6675e55 added free
* c9f6535 added a new file readme.txt
分支管理策略 merge
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...