So you'd have to change the reference against which you're comparing the present code.
Your range HEAD^..HEAD
is a verbose way to designate HEAD
which.... doesn't even need to be designated because it is implied when no ref is explicitly given.
So your command is equivalent to
git log --format='- %B' --no-merges --no-walk
But now for the need to compare against last pushed state : you'd have to use the remote state of the same branch.
Let's assume your branch is called feature-1
and your remote origin
:
# First let's make sure the remote ref is up-to-date
git fetch
# then the logging itself
git log --format='- %B' --no-merges origin/feature-1..feature-1