I am trying to understand how many times I have pushed to a branch. I am not looking for the number of commits. Is there any way I can figure this out?
I think I need to use git rev-list --count
but cannot figure out how to do the rest
The reason I am asking this is that I want to use it in github actinos
This question Github actions - How to get a build number that starts from 1 in each branch