I want to show all my local commits on my branch even when I don't have an upstream branch. If I have an upstream in place I usually use:
$ git log @{u}..$(git branch --show-current)
But this does not work if there is no upstream branch
I've also tried this answer from Aleksander Monk:
$ git log --branches --not --remotes
Which is close to what I want but this shows me all the local commits on all branches. I'd want to filter this to show my commits only for current branch.
Is there a way to pipe this or is there another way?