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

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

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.

Github SourceTree unable to push

I've cloned github repository with SourceTree.
During installing SourceTree I've authentificated with my GutHub account.
After cloning I've made first changes and trying to commit and push. Commit works fine, but push throws exception:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
remote: Permission to KamikyIT/VkWCF.git denied to sergeypyrkin.
fatal: unable to access 'https://github.com/KamikyIT/VkWCF.git/': The requested URL returned error: 403
Pushing to https://github.com/KamikyIT/VkWCF.git
What I can see is that I am not sergeypyrkin.
Check in command-line your credential helper:
git config credential.helper
Depending on your OS, that helper might have cached the wrong credentials (wrong username/password) associated to github.com

Git Error: Remote repository could not read from

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?

Adding an existing project through Github using the command line (terminal)

I am having issues with adding an existing project through Github using terminal. I used the following commands:
In Terminal, add the URL for the remote repository where your local repository will be pushed.
# Sets the new remote
git remote add origin remote repository URL
# Verifies the new remote URL
git remote -v
Push the changes in your local repository to GitHub.
# Pushes the changes in your local repository up to the remote repository
# you specified as the origin
git push origin master
It came with the following results:
remote: Permission to Bloc/bloc-jams-student-skeleton.git denied to ynoorstani.
fatal: unable to access 'https://github.com/Bloc/bloc-jams-student-skeleton.git/': The requested URL returned error: 403
Any helpful tips or insight would be awesome!
You could write to this repo (push) only if you were part of the Bloc organization members (here is the list).
Since you are not in that list, you would need to fork that repo in order to push to it.

GitHub pushing/pulling error

I'm kinda new to GitHub, and I just created my account and set it up, etc. I followed the steps very carefully on http://help.github.com/create-a-repo/ but then when I do the very last command ($ git push -u origin master) it says:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
I have made the Repository, and it matches the name, but I still can't seem to get it to work. Any suggestions?
git will try to contact the remote repo you just declared in the previous line of the GitHub tutorial:
git remote add origin git#github.com:username/Hello-World.git
git push -u origin master
As illustrated in:
"Why are Github project document page urls case sensitive? What are the negative effects?", and
"github http clone returns 'did you run git update-server-info on the server'",
your error message is likely the result of a:
case mistake (git remote add origin git#github.com:username/**h**ello-**w**orld.git)
or url error (git remote add origin git#github.com:username/HelloWorld.git, forgot the '-').
The OP user1302394 confirms, in the comments:
git remote -v gives me:
origin git#github.com:username/Helloworld.git (fetch)
origin git#github.com:username/Helloworld.git (push)
Which means he/she combined a double whammy:
case mistake (world instead of World)
and url mistake (Helloworld insteadd of Hello-World)