Hacker News new | ask | show | jobs
by badhrink 1362 days ago
You can use the max-count option for the git log command.

Something like this: git log --graph --decorate --pretty=oneline --abbrev-commit --color=always --max-count=$cnt