Skip to content
Fix Code Error

git: fatal: Could not read from remote repository

March 13, 2021 by Code Error
Posted By: Anonymous

I am trying to set git up with http://danielmiessler.com/study/git/#website to manage my site.

I have gotten to the last step in the instructions: git push website +master:refs/heads/master

I am working using the git ming32 command line in win7

$ git push website +master:refs/heads/master
[email protected]***.com's password:
Connection closed by 198.91.80.3
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

One problem here may be that the program is looking for [email protected]***.com. when I connect via ssh to my site I have a different username( lets say ‘abc’). so maybe this should be [email protected]***.com. If so I don’t know how to change this or if I can push under an alias

Solution

You can specify the username that SSH should send to the remote system as part of your remote’s URL. Put the username, followed by an @, before the remote hostname.

git remote set-url website [email protected]***.com:path/to/repo
Answered By: Anonymous

Related Articles

  • Why do git fetch origin and git fetch : behave differently?
  • Git's famous "ERROR: Permission to .git denied to user"
  • Your configuration specifies to merge with the from the…
  • Git - Pushing code to two remotes
  • Left Join without duplicate rows from left table
  • Error: Can't set headers after they are sent to the client
  • Why call git branch --unset-upstream to fixup?
  • SQL Insert Query Using C#
  • npm ERR! fetch failed status code 502
  • pyspark window function from current row to a row with…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How to disable a link using only CSS?

Next Post:

“Cross origin requests are only supported for HTTP.” error when loading a local file

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error