Everything was working fine, until I create a new GitHub account. When I try to push the code for first time to github server with new account, following error is occurring:
remote: Permission to NEW_USER/NEW_REPO.git denied to OLD_USER.
fatal: unable to access 'https://github.com/NEW_USER/NEW_REPO/': The requested URL returned error: 403
Tried to reset remote url using:
$git remote set-url origin https://username@github.com/user/repo.git
... but not working.
Got one solution here, but for Mac OS. Any ideas how to resolve this.
Using git bash version 2.16.1.windows.4.
Thanks