Reputation: 2417
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
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