I usually commit in github using gitbash.
When I commit it shows my username.
My professor asked me to submit my project that shows my full name in commit details.
I tried some solutions by editing .gitconfig file in windows.
I also tried some solutions from Stack Overflow like following:
git config --global user.name "name"
git config --global user.email "email"
and
git config user.name "name"
git config user.email "email"
but that doesn't work for me.