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

前端 未结 7 1901
醉话见心
醉话见心 2020-12-11 00:11

I created a directory, hello_git. In this directory I created a file, hello_git.py, which prints out a \"Hello git!\" message.

Then I made

相关标签:
7条回答
  • 2020-12-11 00:15

    In my case a problem was in a wrong URL.

    Instead of

    https://gitlab.com/username/my_repository.git

    I wrote

    https://gitlab.com/username/my_repository/ (copied from a browser)

    0 讨论(0)
  • 2020-12-11 00:19

    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.

    0 讨论(0)
  • 2020-12-11 00:27

    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!

    0 讨论(0)
  • 2020-12-11 00:30

    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.

    0 讨论(0)
  • 2020-12-11 00:30

    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 (https://status.github.com/)

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

    0 讨论(0)
  • 2020-12-11 00:41

    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.

    0 讨论(0)
提交回复
热议问题