Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jolmg
39 days ago
|
parent
|
context
|
favorite
| on:
The git history command
One can also use that, or just `git log -n1` and taking note of the commit hash. So many options.
jmholla
39 days ago
|
next
[–]
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.
inigyou
39 days ago
|
prev
[–]
For scripting: git rev-parse HEAD
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: