Reputation: 4991
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
Reputation: 33993
You have several options:
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.
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
Reputation: 1802
Have no idea about TortoiseGit.. but in git console you can use:
git branch --contains <commit>
Upvotes: 1