R.P
R.P

Reputation: 500

How to find out where did git commit originate from?

Got couple questions regarding git:

1) Is there a way to find out from which branch did commit (which was merged from dev into master) originate?

2) Also is it possible to find above information out after branch (where commit actually originated from) was deleted at remote and local?

Upvotes: 1

Views: 75

Answers (1)

Frederic Henri
Frederic Henri

Reputation: 53713

you can use --merges option

   --merges
       Print only merge commits. This is exactly the same as --min-parents=2.

and with a particular commit Id do git log --merges <commit_id>

Not sure I get the 2nd point of the question though

Upvotes: 1

Related Questions