You can use git tag and git hook to workaround.
I wrote a blog post guide you how to do it.
https://www.reactkeyblog.com/en/posts/how-to-automatically-add-commit-numbers-in-git-fork-%7C-reproduce-perforce-changelist-with-git-tags/296f5b54-e10e-4d6c-8eea-1cde1f886efb#blog-title