git flowを使用して、 で 2 つのブランチを作成しましgit flow feature start <feature name>
た。までに終わったか覚えていない
git flow feature finish
両方のブランチで使用し、A
ブランチをブランチにマージし、ブランチB
を削除してから、ブランチからA
実行する、またはgit flow feature finish
B
- ブランチ
B
をdevelop
withgit flow feature finish
にマージしてから、ブランチA
をdevelop
withgit merge
にマージし、マージの競合を解決してから、 with でブランチを削除A
しますgit 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
、マージが行われた順序はわかりません。履歴に基づいて、3 つのシナリオのどれが発生したか教えてもらえますか?
編集:
からの出力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