Failed to clone remote repository - version-control

I can not clone and get a 403 error code. The user name and password I entered are the ones I use to login to GitHub and are correct. Please advise, thank you.

Related

Git remote seems to point to my repository. But comitting results in Error 403. How do I commit to the repository in my account?

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

How can you get the right access key to push in my git work to my github repo?

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.

Personal Access Token Not Authentication Failed when pulling code

I am trying to connect to my GitHub repo using a PAT. I followed all the steps and something weird is happening:
This command works:
git ls-remote https://<username>:<PAT>#github.com/<username>/<reponame>
But when I run ANY git command from the command line and get prompted for the username and password (and I enter the PAT instead), I get this error:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/<username>/<reponame>'
I have pasted the PAT on the CL and it pastes just fine. What am I missing here?? I am doing this on a Ubuntu machine.
Also git config credential.helper returns nothing!
Update:
After some googling, I found that Linux stores system passwords in /etc/shadow. For me, this file contains two entries : 'gitlog' and 'gitdaemon' . Could this be the reason why the PAT entry is not working?
Try using it on another machine and see if it works, if so then it might have something to do with your machine but if it doesn't work on other machines, I think you might need to generate a new PAT and try again.

error 403: can't push to my github account

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.

Can not input password of my GitHub account when using hexo deploy

I encounter this issue after I type "hexo deploy" in terminal. It asked me my GitHub username and password. The problem is I can only type in my username but not my password.
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
On branch master
nothing to commit, working tree clean
Username for 'https://github.com': Yancey2126
Password for 'https://Yancey2126#github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Yancey2126/yancey2126.github.io.git/'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Yancey2126/yancey2126.github.io.git/'
All I can do is to press Return and get an failed identification. Anyone knows what's going on? Thanks a lot~
Check the output of git config credential helper: you might have a password cache, which will provide automatically a password for the user Yancey2126.
For instance, with Git for Windows, you would be using the latest Microsoft Git Credential Manager for Windows.
On mac, you would have the osxkeychain.