i get all commits of a repo with:
curl -I -k -u ${api_user}:${api_token} "${api_url}/commits?sha=${api_branch}&per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
Is there a similar way for git rev-list with the GitHub Rest API and curl?
Thanks in advance!