When I push commits to github repo from windows github client, I can see my github username and link to my profile in history, like this:
initial commit [username]
But when I push changes from SourceTree, in commits history it looks like:
initial commit [mac_username]
I want my history on github.com looks like the first example (with github username and link to the profile) What settings I should enable in SourceTree to get it?
Check the config in those repos:
Make sure the repo on Mac has the same settings than the one on Windows.
This thread details how to change those settings in SourceTree, but check if “Allow SourceTree to modify your global Git configuration file” is set: that means it would apply to all your local git repo (Github or not).
The “Full name” is a bit misleading, in that you should use your GitHub login name (and GitHub account email), in order to generate the right commit author history on GitHub.