SyntaxFix
Write A Post
Hire A Developer
Questions
You can just reverse your log and just head it for the first result.
git log --pretty=oneline --reverse | head -1