dexterous
dexterous

Reputation: 6526

how to know the branch name from the graph line in git?

I am using source tree by Atlassian to debug the regression issues via git repository. My question is how can I make out the branch name from the graph lines in git? I see various colors like brown, blue, and red. My question is what is the branch name for these corresponding color lines -

Here is the graph --

enter image description here

Upvotes: 7

Views: 3163

Answers (2)

dexterous
dexterous

Reputation: 6526

I found that git tortoise windows is the answer to it. It provides a very friendly graph.

Upvotes: -2

Corvae
Corvae

Reputation: 308

The name floats upwards, to the most recent commit for that branch. If the commit was a merge, Sourcetree automatically adds the branch name to the commit message. Otherwise, you will just have to scroll up until the label of the same color is visible (unless Atlassian adds this in the future). You might be able to create a custom action for a commit within Sourcetree and call git log with the commit hash.

Reference: http://git-scm.com/book/ch2-3.html

Upvotes: 6

Related Questions