GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently)

I created a directory, hello_git. In this directory I created a file,, which prints out a “Hello git!” message.

Then I made hello_git my current directory in the terminal and entered the following commands one after another in that directory:

git init
git add
git commit -m 'first commit'
git remote add origin

When I enter the command git push origin master I get asked:

Enter passphrase for key '/home/myusername/.ssh/id_rsa':

When I enter my passphrase (which authenticates successfully using ssh -T I get this:

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

I don’t know if this helps, but:

git remote -v


origin (fetch)
origin (push)

I have looked into answers of similar posts, but nothing seems to work:

  • Fatal: The remote end hung up unexpectedly while pushing to Git repository

  • GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedly

  • How do I resolve this issue of preventing push to origin wrt. GitHub?

  • How to allow automated CI processes to push commits with Github branch protections?
  • Cannot get
  • I can't push my changes to remote server (up to date)
  • Update the fork Github
  • Project management to go with GitHub
  • What is the Fork & Pull Model in GitHub?
  • How can I check out a GitHub pull request?
  • Push local new Git repo to existing remote repo as branch?
  • 7 Solutions collect form web for “GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently)”

    The error message says it all

    ERROR: Repository not found.

    Is there a Git repository where you’re looking?

    You need to create the repository on GitHub first. It can’t find the repository because it doesn’t exist yet!

    Eric has already given the best answer for this question in the case that the repository does not exist, but I want to point out that:

    The response pair of “Repository not found. / remote end hung up unexpectedly” is also given by GitHub when the repository does exist, but the user does not have permission to push to it.

    If you’re absolutely certain that the repository already exists on GitHub, make sure the account you’re using has permission to push to that repository.

    Did you perhaps rename your repository? If you renamed your repository on GitHub, you need to update the origin accordingly. This has happened to me once, where I renamed my repository and forgot to update the origin settings in my laptop.

    Either the repository doesn’t exist or you don’t have the right permission.

    More information is on Error: Repository not found.

    Also, if you have multiple GitHub accounts (which is actually disallowed), you need multiple ssh keys to be stored with GitHub.

    More information is on Quick Tip: How to Work with GitHub and Multiple Accounts.

    This can also happen if you’ve stored incorrect credentials. You can clear the repo’s memory to be re-prompted on your next push with this:

    git config --unset credential.helper

    In my case a problem was in a wrong URL.

    Instead of

    I wrote (copied from a browser)

    I just encountered this same issue. If none of the other solutions work, it may be because GitHub is having problems with their SSH access, as it says on their status page (

    “We are investigating problems with repository access and some features. We will report back once we have more information to share.”

    Git Baby is a git and github fan, let's start git clone.