According to this question, I can use git log master..my-branch
to see the log of commits to my-branch
, assuming it was created off master
, regardless of which branch I am on. This is useful, but what if I want to see the log of all commits to master
, back to the begging of time, while I have a different branch checked out? git log master..master
does nothing (understandably)
Asked
Active
Viewed 131 times
-2

ewok
- 20,148
- 51
- 149
- 254
-
Maybe you need just `git log`? – Hackerman Jun 25 '18 at 17:47
-
@Hackerman that will give me the log of the current branch – ewok Jun 25 '18 at 17:47
-
Mmmm...try this one `git log --no-merges master..` – Hackerman Jun 25 '18 at 17:52
-
@Hackerman my master branch contains nothing but merge commits. That produces nothing, even when on the master branch – ewok Jun 25 '18 at 17:53
-
Aaah, my mistake...just remove the `--no-merges` option...it should be `git log master..` – Hackerman Jun 25 '18 at 17:55
-
Does `git log master` not get you the history of `master`? – sp0gg Jun 25 '18 at 17:55
-
@sp0gg I don't know why that didn't seem to work before. thanks – ewok Jun 25 '18 at 17:58