Hi PeteR

*"git log"*[1] <https://git-scm.com/docs/git-log> was a good thought, you 
just need to add "--all" parameter, as by default only current branch is 
logged, as you noticed, arguably being the most common use case.

What helped me in the beginning was remembering - "What everyone needs? *A 
dog*!"[2] <https://stackoverflow.com/a/35075021> :), that is:

    git log --*a*ll --*d*ecorate --*o*neline --*g*raph

Might be irrelevant for now, but you should also know that in some cases 
Git might still decide not to show all the commits -- this is being 
considered a feature, and part of *"history simplification"*[3] 
<https://git-scm.com/docs/git-log#_history_simplification>, being helpful 
with understanding complex history graphs. To ask Git not to simplify 
history, parameters "--sparse" and "--full-history" are used... but it 
should be safe not to bother with this in the beginning -- or most of the 
time, even :)

[1] https://git-scm.com/docs/git-log
[2] https://stackoverflow.com/a/35075021
[3] https://git-scm.com/docs/git-log#_history_simplification


On Friday, November 3, 2017 at 9:55:39 PM UTC+1, pro...@ucsd.edu wrote:
> All I want is a complete list of the SHAs and tags of all the commits 
> I’ve made, including those on any branches  (obviously I’m a  beginner and 
> have some wrong concepts). 
> I don’t see how from the documentation. I want to see the commits from 
> branches as well. 
> I tried "git show —max-parents=0”  — gave me nothing, while "git show" 
> gave me far too much detail but not the commits from the main line of 
> commits (i’m on a branch).
> I thought that “git log” would show all my commits, but it only shows the 
> commits of the branch I’m on.
> PeterR

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.

Reply via email to