You can achieve something like this by using commit message conventions. Most git clients support this, including GitHub.
Specifically, add something like this to the end of your commit message:
Co-authored-by: John Smith <[email protected]>
You can have multiple co-authors by including this line multiple times.