I have changed my user and email for git with those commands
git config --global user.name "maa"
git config user.email "maa@gmail.com"
I confirmed the change with
git config --global user.name
git config user.email
and it shows the right names. However when I push the old user name is used:
git push -u origin master
remote: Permission to maa/brain.git denied to old_user_name.
fatal: unable to access 'https://github.com/maa/brain.git/': The requested URL returned error: 403