Is there a way to know which branch a commit was committed on after a merge? [duplicate]
Possible Duplicate:
Show the original branch for a commit
git version 1.7.4.1
I have about 4 different branches and have been merging them.
However, I make some changes about a week ago and in the git log I can see the commit. But I doesn't tell me what branch that commit was committed on.
I have tried the following:
git log --decorate=full
But didn't give me too much information.
And I have tried
git branch --contains <commit hash>
But that doesn't tell me the origin of the commit
Many thanks for any suggestions,
No, there is not.
The branch names are (at least by most git developers) generally considered to be transient, private to developer and meaningless after the branch is closed.
I believe the same is the case in mercurial, but not in bazaar, which IIRC remembers the name in the commit data.
精彩评论