I tried make new repository on my GitHub, but I can't because before I made another account on GitHub and now when I'm trying make new repository with new account I have error :
<myenv> C:\Users\my-user\my-folder\> git push origin master
remote: Permission to new-user/repo.git denied to OLDUSER.
fatal: unable to access 'https://github.com/new-user/repo.git/' :
The requested URL returned error: 403
When I try add origin remote I got this error :
fatal: remote origin already exists.
I tried edit the .git/config file in my working directory, but nothing helps. So i have question, can I remove OLDUSER from GitHub to make new repository with my new-user?
I tried also this :
git remote rm origin
and after :
git remote add origin https://github.com/new-user/repo.git
git push -u origin master
I got this error :
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository
Please make sure you have the correct acces rights
and the repository exists.