开发者

Is there a way to know which branch a commit was committed on after a merge? [duplicate]

This question already has answers here: 开发者_JAVA百科 Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜