Aleksey Kontsevich
Aleksey Kontsevich

Reputation: 4991

How to get branch name in log?

How to get branch name by its color in TortoiseGit log for "All Branches" option? Or how to get branch name some commit belongs to in TortoiseGit or Git?!

Upvotes: 3

Views: 618

Answers (2)

MrTux
MrTux

Reputation: 33993

You have several options:

  1. The most progressive way: Select the commit and open the context menu and click on "Show branches this commit is on" which basically invokes git branch -a --contains <commit> right now.

  2. Select the commit and then select "Branch" or "Parent 1" in the upper right and hit the up botton next to the combo box until you find the branch label.

Upvotes: 4

sourcecode
sourcecode

Reputation: 1802

Have no idea about TortoiseGit.. but in git console you can use:

git branch --contains <commit>

Upvotes: 1

Related Questions