I have a main GitHub account shared by multiple people, and we each have our own account. I created a repository through Android Studio using the main account, and now I was to push code from my personal account. So I go to the GitHub settings under
File > Settings
Maybe when you set up git with your new account it didn't change gitconfig
git config --global user.name "Amir" git config --global user.email "email@example.com"
(note --global is optional , it will make it your name/email everywhere on the system)