Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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.


For scripting: git rev-parse HEAD




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: