Git Error: Remote repository could not read from - github

riya#RFL113:~/Documents/EventsAcross_ReactJS$ git push origin master
ERROR: Permission to RiyaKapuria/EventsAcross_ReactJS.git denied to railsfactory-riya.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exist
I'm getting this error while pushing in master. I'm having two git account in same system with two SSH Key.
I'm following https://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574
Can anyone help please?

Related

ssh: Could not resolve hostname github.com: Temporary failure in name resolution fatal error

I get this error when I am trying to push changes up to github:
ssh: Could not resolve hostname github.com: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I used to be able to push on this repo, but for some reason its giving me this error now.
When I run git remote -v it gives me this
origin git#github.com:WilliamLi10/UnigraderBackendCode.git (fetch)
origin git#github.com:WilliamLi10/UnigraderBackendCode.git (push)
I am trying to push changes up from my local repo to github, but it gives me this error.

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

Permission denied (public key). Fatal: Could not read from remote repository

Could please someone help me?
I completely blocked using Github. I'm trying to solve the problem, but I can't push my code on Github.
git push --set-upstream origin main Permission denied (public key). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

fatal: Could not read from remote repository error while git push

riya#RFL113:~$ git remote add origin_personal
git#github.com:RiyaKapuria/testing.git riya#RFL113:~$ git push -u
origin_personal masterERROR: Permission to RiyaKapuria/testing.git
denied to railsfactory-riya. fatal: Could not read from remote
repository.
Please make sure you have the correct access rights and the repository
exists.
I'm getting this error in GitHub
First check that your are logged in or not
git config user.name
If you are logged in, try to add repository first
git remote add origin *your_repository_URL*

What does the Git error "remote: Repository not found." mean?

After I issued
git push origin <branch-name>
and entered the access credentials, Git returned an error like so
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/<account-name>/<repository-name>.git'
What seems to be the problem?
The GitHub help page, "Error: Repository not found" summarizes the possible causes:
permission (which is what Monika refers to in the comments with "Cloned directly from repo…get error when pushing")
You might need to fork the repo, and, on your local repo, do a:
git remote rename origin upstream
git remote add origin https://YourUsername#github.com/YourUsername/YourFork
spelling: the name of the repo is case sensitive
non-existent repo