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)
Related
i encountered this problem while trying to push to my accountvia terminal, working on a site
and it kept giving me that fatal error "Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
i have tried getting access to another SSH key but still not working.
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
This article would help you solve the problem.
Generate an ssh key
Add it to your account
Refresh the project both on github
On your command line and run the git command again.
$ git push -u origin master
remote: Permission to ravi5026/web-server.git denied to vnaresh007.
fatal: unable to access 'https://github.com/ravi5026/web-server.git/': The requested URL returned error: 403
where can I delete vnaresh007 and put my own access. My credentials are set properly.
Check your git credential helper: this is what has cached the wrong credentials.
git config credential.helper
On Mac, just open your keychain access->search for github.com related file->and edit credentials there.
See "Updating credentials from the OSX Keychain"
On Windows for example, 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; the same idea applies to GitHub)
In command-line, as seen here:
git credential reject
protocol=https
host=github.com
<empty line here>
and then to set the new username & password:
git credential fill
protocol=https
host=github.com
<empty line here>
Type git help credential for detailed info.
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.
I'd like to install the c++ sdk on my ec2 instance. The bash command to do this is given on this page: https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/setup.html
"To build the SDK from source"
...
"Clone with Git: git clone git#github.com:aws/aws-sdk-cpp.git"
I downloaded git on my instance and tried this command and get these errors:
"The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists."
If I can't resolve this, then I need to do a direct download. Can I do a Direct download via curl? I'd like to be able to get a fresh download every time I launch a new instance so that I pick up all the new code updates.
The given download(checkout)instruction is based on the assumption that you are using ssh to access Github. You should set up ssh key on Github to make that work.
Otherwise, you can use Https to check it out: git clone https://github.com/aws/aws-sdk-cpp.git
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.