我使用git flow创建了两个带有git flow feature start <feature name>
. 我不记得我是否完成了
git flow feature finish
在两个分支上使用,- 将分支合并
A
到分支B
,删除分支A
,然后git flow feature finish
从分支运行B
,或 - 将分支合并
B
到develop
with 中git flow feature finish
,然后将分支合并A
到develop
with 中git merge
,解决合并冲突,然后删除分支A
withgit branch -d <branch name>
使用我能找到git reflog
的最后一个分支跟踪是在系列中:A
e553bf0
e553bf0 HEAD@{40}: checkout: moving from feature/a to develop
6b30050 HEAD@{41}: checkout: moving from develop to feature/a
e553bf0 HEAD@{42}: checkout: moving from feature/a to develop
6b30050 HEAD@{43}: checkout: moving from develop to feature/a
e553bf0 HEAD@{44}: commit (merge): resolved merge conflicts
7a0ad6b HEAD@{45}: checkout: moving from feature/a to develop
6b30050 HEAD@{46}: checkout: moving from develop to feature/a
7a0ad6b HEAD@{47}: merge feature/b: Merge made by the 'recursive' strategy.
921ae46 HEAD@{48}: checkout: moving from feature/b to develop
还有,git log
节目
commit e553bf07272ab2b1975917b736b37127636c0db1
Merge: 7a0ad6b 6b30050
Author: Eric Baldwin <address-here>
Date: Thu Jul 25 14:58:49 2013 -0400
resolved merge conflicts
commit 7a0ad6b2277c0c0a7599193829f68517ac708ca2
Merge: 921ae46 02558b6
Author: Eric Baldwin <address-here>
Date: Thu Jul 25 14:03:56 2013 -0400
Merge branch 'feature/b' into develop
这两个功能的代码目前都在 中develop
,但我不知道合并发生的顺序。有人可以根据历史告诉我这三种情况中的哪一种吗?
编辑:
输出git log --oneline --graph develop
:
* 2ebb938 misc
* 69f95f6 Merge 'feature/x' into 'develop' merge conflicts
|\
| * 8b9b275 Merge 'develop' with feature/x; minor merge tweaks
| * eb89630 misc
| * 54884d2 misc
| * 76f02bb Merge branch 'develop' into feature/x
| |\
| * | d06d673 misc
| * | 0ba5235 misc
* | | 5489590 misc
* | | a215bd2 misc
* | | 4aacaa7 misc
* | | e553bf0 resolved merge conflicts
|\ \ \
| * | | 6b30050 fixed test db error
| * | | 64909f9 Merge branch 'develop' into feature/a
| |\ \ \
| * \ \ \ e7319e1 Merge branch 'develop' into feature/a
| |\ \ \ \
| * | | | | 410786b misc
| * | | | | 67267f3 misc
| * | | | | ae4b800 misc
| * | | | | 9e281eb Merge branch 'develop' into feature/a
| |\ \ \ \ \
| * | | | | | f8fa2ec misc
* | | | | | | 7a0ad6b Merge branch 'feature/b
|\ \ \ \ \ \ \
| * | | | | | | 02558b6 ready to merge
| * | | | | | | cc07f79 Merge branch 'develop' into feature/b
| |\ \ \ \ \ \ \
| | | |_|_|/ / /
| | |/| | | | |
| * | | | | | | 4b6610f misc
| * | | | | | | 25e509b Merge branch 'develop' into feature/b
| |\ \ \ \ \ \ \
| | | |_|_|/ / /
| | |/| | | | |
| * | | | | | | df5640d merged with develop