lairtech
lairtech

Reputation: 2417

Git: How to find which branches a commit was merged into?

Given a Git commit ID for a set of changes, how do I find which branches this commit was merged into?

Upvotes: 1

Views: 54

Answers (1)

plus-
plus-

Reputation: 46543

A commit has been merged into a branch if it's part of that branch history (list of commits). So that should do:

 git branch --contains <commit>

Upvotes: 4

Related Questions