I have an old Github account which works fine and I’ve recently created new Github account.in the new one whenever I’m trying to do git push command I get and error.the scenario is the two ones below and in both scenarios I get an error:
I initialize a local repo and then make a repo (without readme.md file) in my new github account and finally I try to push this local (initialized) repo to my new github account to my github repo.
I create a repo in my new Github account (with readme.md file) and cloning into my machine and after applying some changes and after doing git add and git commit I do the git push command but I got an error
Note: dolatabadiahmad is my new account and ahmaddolatabadi is my old account
$ git push --set-upstream origin master
remote: Permission to dolatabadiahmad/myone.git denied to ahmaddolatabadi.
fatal: unable to access 'https://github.com/dolatabadiahmad/myone.git/':
The requested URL returned error: 403.