I was pushing and pulling from git in Terminal then I changed my username on github.com. I went to push some changes and it couldn\'t push because it was still recognizing
I recommend you to do this by simply go to your .git folder, then open config file. In the file paste your user info:
[user] name = Your-Name email = Your-email
This should be it.