Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7920759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:20:09+00:00 2026-06-03T16:20:09+00:00

I have been using git to push my local code to a server. I

  • 0

I have been using git to push my local code to a server. I have a local remote that is called “origin” and I have a remote on the server that’s called “github”. Typically, after committing, I use “git push origin master” to push the local code to github. Next I ssh into the server and use “git pull github master” to pull the github code onto the server. This has been working for a couple of weeks. However, yesterday when I went to pull code to my server from github, I got the following error:

python$ git pull github master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

I went back to my local computer and tried a “git push origin master” and it worked fine. I also tried a “git pull origin master” and it also worked, so clearly the repo exists. So I decided there might be an issue with my remote on the server. I checked the remotes (using “git remote -v”) and they match the remotes on my local computer exactly, with the exception of having different remote names. How else should I go about troubleshooting this?

EDIT

I know there probably isn’t a simple solution to this. I’m fairly new to git and github though, so I’m wondering about the best ways to troubleshoot this. Should I try and destroy my git and run another git init? Are there any other suggestions about what might be the problem?

EDIT 2

So now there error has become:

python$ git pull github master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I decided to try to initialize a git in another directory, add a new remote and do a pull from the new directory. I ended up with the same result. I’m guessing I can fix this by fixing my keys. My local git and keys are still working, could I possibly grab my keys from my local repo and put them on the server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:20:11+00:00Added an answer on June 3, 2026 at 4:20 pm

    I had exactly the same problem, and in our case it turned out the problem also had to do with SSH keys – namely, with access rights to the certain GH repo.

    Local key was mine and worked fine, while server key were created by some other guy, and when his access to repo was revoked, we couldn’t pull the code anymore – and github gives “Repo not found” rather than “You don’t have the rights to access this repo”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using git and github with my small team of developers for
I have been working on setting up a git server by using Paramiko to
I am using Git Version Control on an remote server and I have set
Some Background I have been using Git for a while now. The projects that
I am using git / github and by accident I have been committing into
I'm using phpFog and have been deploying via git push -f <repo> to overwrite
I have a Java project in Eclipse that I maintain using a local git
I have been using Git for my version control for a while now, but
I have been using this code with great success to pull out the first
I have been using the 'Web Site Administration Tool' that you can bring up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.