I am getting next error:
$ git push -u origin master
remote: Permission to teddyruns/medals.git denied to franciswebdevelopment
fatal: unable to access 'https://github.com/teddyruns/medals.git/': The requested URL returned error: 403
I have checked my global user name and email, and created a new ssh key, but franciswebdevelopment is my old account,
I have no idea why I can't push to my new account,
Does anybody have any idea where I am going wrong?
but franciswebdevelopment is my old account
That means you probably have a git crendential helper which has cached the credentials franciswebdevelopment for github.com.
git config credential.helper
If that is the case, remove that entry:
git credential-manager delete https://github.com
Then try again (but not right now, with HTTPS or SSH, because GitHub is experiencing a major outage)
Github is currently experiencing issues,
Click here to check their status.
Related
I have a git folder. The remote points to https://myusername#github.com/repo.git. I have cloned this repo from a publicly available repo. When I do git push it asks me for https://myusername#github.com.
I havent used git in a while. I realized they don't do password anymore. So I generated a token and used it in the place of the password. However I am getting the following error
remote: Permission to repo.git denied to myusername.
fatal: unable to access 'https://github.com/repo.git/': The requested URL returned error: 403
However my impression was that I was accessing the repo at myusername#github.com not trying to modify the original public repository "repo.git"
What am I missing? My remote seems to be pointed to my account and it asks the password to my account. Sorry I am inexperienced with git and seem to be missing something fundamental
Thanks
So, I have my pubkeys on github.
Somehow from one of my devices I can't push commits..
> git pull --tags origin main
git#github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
of course I checked the ssh keys on my github page, thinking that maybe I forgot to put this specific device key in it.
but when I try to add it it tells me the key is already there.
Then I tried to connect through ssh to my github account and of course it works.
Hi mosfetti! You've successfully authenticated, but GitHub does not provide shell access.
What should I do?
Thanks
(Windows 10)
apparently something was rong with origin url..
still don't know why..
solved by adding the origin again
git remote set-url origin https://github.com/myuser/myrepo
I initialized a repo in my GitHub. I issued a git clone command. I went to the directory in my local computer where I wanted to clone the repo. Then I copied some files in my local drive. Then I did:
git add .
git commit
git push -u origin master
The message appeared:
remote: Permission to jasonkid1/testuli.git denied to jpamittan.
fatal: unable to access
'https://jasonkid1#github.com/jasonkid1/testuli.git/': The requested
URL returned error: 403
How can I fix this?
For any https authentication issue, you need to check your credential caching:
git config credential.helper
That is:
On Windows, for instance, you would need to open the Windows Credential Manager and check the right password was entered.
On Mac, you would need to update the OSX keychain.
You might have credentials for any github.com URL associated to jpamittan (wrong user) instead of jasonkid1.
Trying to push a project to github and I'm getting the following Error
remote: Permission to RedNetty/RedPractice.git denied to JackCDev.
fatal: unable to access 'https://github.com/RedNetty/RedPractice.git/': The requested URL returned error: 403
The issue isn't as simple as me going into Settings > Version Control > Github
I've already changed that but its still trying to push via the wrong account.
Check if you have a git **credential helper**active:
git config credential.helper
For instance, on Windows, that would be the Windows Credential Managers.
Open the Windows Credential Store, and see if the first user is registered there: delete that entry, and you will be able to authenticate with the second user.
(Here is an example for BitBucket)
I have recently created a new Github account, and want to upload my project onto the repository that I created on my new account.
I have tried my level best to change the git credentials in my system, by changing the username and email:
git config --global user.name "newusername"
git config --global user.email emailID
However, when I try to push the contents onto the Github repository, it shows me the following error:
remote: Permission to newusername/repositoryname.git denied to oldusername
fatal: unable to access 'url': The requested URL returned error: 403
I have tried my best to have the issue resolved, but I am unable to come up with an exact reason and solution on why this issue is occurring. Any help would be greatly appreciated. Thanks.
Delete the github credentials in the windows credential manager:
http://www.digitalcitizen.life/credential-manager-where-windows-stores-passwords-other-login-details
Git should ask you again...