5

Possible Duplicate:
Find the parent branch of a branch

I have made a new feature branch but I have forgotten form where did I branch this feature branch. Now the feature is complete but I don't know in which branch I have to merge Who do I find the branch that I have branched from?

Burhanuddin Rashid
  • 5,260
  • 6
  • 34
  • 51
user1796624
  • 3,665
  • 7
  • 38
  • 65

2 Answers2

7

I believe you can use gitk or git-log to better visualize your commits history.

Like this:

gitk --all 

or

git log --graph --decorate
josemando
  • 573
  • 2
  • 9
2

You can a list of child branches by typing: git branch --contains

Only if you don't have many branches that could be the parent branch, I think it could be useful

yacon
  • 1,112
  • 1
  • 10
  • 17