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)
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
... or the same thing but using `git log --graph` style:
* H (master)
| * F (feature)
| * E
| * D
(2) $ git log --oneline master..feature
(3) $ git log --oneline feature..master
(4) $ git log --oneline master
(5) $ git log --oneline feature
"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.
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
For more options, visit https://groups.google.com/d/optout.