On Wednesday, May 10, 2017 at 8:28:12 AM UTC+2, ashok.s...@gmail.com wrote: > > Want to see only 1.2.4-rel's history without master's history. > > On Tuesday, May 9, 2017 at 3:34:05 PM UTC-7, ashok.s...@gmail.com wrote: >> >> git log --oneline branch-name --> It lists all the commits. Is there a >> filter option with git log to filter only mentioned branch (branch-name) >> commits? >> > And how are "1.2.4-rel" and "master" related to each other (commit graph)?
Sylvie already gave you a correct answer, e.g.: (1) A---B---C---G---H master \ D---E---F feature ... or the same thing but using `git log --graph` style: * H (master) * G | * F (feature) | * E | * D |/ * C * B * A (2) $ git log --oneline master..feature F E D (3) $ git log --oneline feature..master H G (4) $ git log --oneline master H G C B A (5) $ git log --oneline feature F E D C B A "Branch commits", in Git`s eyes, is everything that can be reached from the branch tip (pointer). For the "feature" branch in the above example (1), all its commits are shown in command/output example (5) -- and yes, commits A, B and C are considered to be a part of both "feature" and "master" branches. This may not be what _you_ consider "branch commits", where you may prefer to see something like output example (2) above, but in order to get more help, some more knowledge about your repository would be helpful, especially the relation (graph) of the revisions (branches/tags/commits...) you`re interested in. Regards, Buga -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.