I have read through multiple questions addressing this problem, but none of the solutions work for me. I have changed the user.name and user.email of my local repository, yet when pushing it doesn't work. Here is what my terminal looks like:
$ git config --local user.name "myusername"
$ git config --local user.name
myusername
$ git config --local user.email "[email protected]"
$ git config --local user.email
[email protected]
$ git push
remote: Permission to myusername/myusername.github.io.git denied to otheraccount.
fatal: unable to access 'https://github.com/myusername/myusername.github.io.git/': The requested URL returned error: 403