In a Git repo run git log -1
to get details of the last commit.
--pretty
can be used to format
the message according to your needs.
I sometimes just want the subject of the last commit, in which case I run:
git log -1 --pretty=%s
In a Git repo run git log -1
to get details of the last commit.
--pretty
can be used to format
the message according to your needs.
I sometimes just want the subject of the last commit, in which case I run:
git log -1 --pretty=%s