logoalt Hacker News

jolmgtoday at 2:06 AM1 replyview on HN

One can also use that, or just `git log -n1` and taking note of the commit hash. So many options.


Replies

jmhollatoday at 5:31 AM

Fun fact: you don't even need the `-n`. `git log -1` does the same thing, for any number.

    -<number>, -n <number>, --max-count=<number>
        Limit the output to <number> commits.