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

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.

Related

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?

make new repository in git hub

I have my project on GitHub at some location,
https:github.com/vidurasilva/loging_Form.git
I used the commands one by one and there has errors also,
C:\wamp\www\PhpProject>git remote add origin https:github.com/vidurasilva/Register_For_New.git
fatal: remote origin already exists.
C:\wamp\www\PhpProject>git push -u origin master
fatal: unable to access 'https:github.com/vidurasilva/loging_Form.git/': Couldn't resolve host 'github.com'
C:\wamp\www\PhpProject>git remote set-url origin git#github.com:vidurasilva/Register_Form_New.git
C:\wamp\www\PhpProject>git push -u origin --all
ssh: Could not resolve hostname github.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
C:\wamp\www\PhpProject>git clone https:github.com/vidurasilva/Register_Form_New.git
Cloning into Register_Form_New...
fatal: unable to access https:github.com/vidurasilva/Register_Form_New.git/: Couldn't resolve host github.com
Try this:
git remote remove origin
git remote add https://github.com/vidurasilva/Register_Form_New.git
git push origin master
Further assistance is available in this article from GitHub support.
First fix this
git remote add origin https:github.com/vidurasilva/Register_For_New.git
with this
git remote add origin https://github.com/vidurasilva/Register_For_New.git
Then fix this
git clone https:github.com/vidurasilva/Register_Form_New.git
with this
git clone https://github.com/vidurasilva/Register_Form_New.git

Unable to push changes into gerrithub.io

I have the repo here Link to the repo
I cloned it and did some changes but when I try to push it.
It gives me the following error:
$ git push origin HEAD:refs/for/master
Username for 'https://review.gerrithub.io': ardyflora
Password for 'https://ardyflora#review.gerrithub.io':
fatal: Authentication failed for
'https://review.gerrithub.io/ardyflora/virginPulseAuto/'
I have even added the ssh key. Any pointer or help will be appreciated :)
Authentication failure for HTTPS. Better you can take a try with SSH.
Copy the URL for SSH of your repository using a browser and update your local origin.
$ git remote set-url origin <ssh-clone-url>
$ git push origin HEAD:refs/for/master

Failed to connect to github.com port 443: Time out

When try to clone a project using the git clone command I got this following error message.
Failed to connect to github.com port 443: Time out
DDoS attack check this link https://status.github.com/
The connectivity problems have been identified as a DDoS attack. We're working to mitigate now.
Make sure that you have used
$ git remote add origin git#github.com:**yourname**/learngit.git
to connect your local repository to github.
If you find the following error:
fatal: remote origin already exists.
Then write the following statement in your git bash.
$ git remote rm origin
then write again to re-connect your repository to GitHub.
$ git remote add origin git#github.com:**yourname**/learngit.git
If the above steps can not help you, there must be some ssh errors I think.

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