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

  • SEARCH
  • Home
  • 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 215883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:30:45+00:00 2026-05-11T18:30:45+00:00

This question is related to my problem in understanding rebase, branch and merge ,

  • 0

This question is related to my problem in understanding rebase, branch and merge,
and to the problem

How can you commit to your github account as you have a teamMate in your remote list?

I found out that other people have had the same problem.
The problem seems to be related to /etc/xinet.d/.

Problem: unable to push my local branch to my master branch at Github

I run

git push origin master

I get

fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

The error message suggests me that the branch ‘origin’ is not in my local git repository. This way, Git stops connecting to Github.

This is strange, since I have not removed the branch ‘origin’.

My git tree is

  dev
* master
  ticgit
  remotes/Math/Math
  remotes/Math/master
  remotes/origin/master
  remotes/Masi/master

How can you push your local branch to Github, while you have a teamMate’s branch in your local Git?


VonC’s answer solves the main problem.
I put a passphares to my ssh keys.

I run

$git push github master     

I get

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

It seems that I need to give the passphrase for Git somehow.

How can you make Github ask for your passphrase rather than relying on the ssh key?

  • 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-05-11T18:30:45+00:00Added an answer on May 11, 2026 at 6:30 pm

    What does

    $ git config --get-regexp '^(remote|branch)\.'
    

    returns (executed within your git repository) ?

    Origin is just a default naming convention for referring to a remote Git repository.

    If it does not refer to GitHub (but rather a path to your teammate repository, path which may no longer be valid or available), just add another origin, like in this Bloggitation entry

    $ git remote add origin2 git@github.com:myLogin/myProject.git
    $ git push origin2 master
    

    (I would actually use the name ‘github’ rather than ‘origin’ or ‘origin2’)


    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly

    Check if your gitHub identity is correctly declared in your local Git repository, as mentioned in the GitHub Help guide. (both user.name and github.name — and github.token)

    Then, stonean blog suggests (as does Marcio Garcia):

    $ cd ~/.ssh
    $ ssh-add id_rsa
    

    Aral Balkan adds: create a config file

    The solution was to create a config file under ~/.ssh/ as outlined at the bottom of the OS X section of this page.

    Here’s the file I added, as per the instructions on the page, and my pushes started working again:

    Host github.com
    User git
    Port 22
    Hostname github.com
    IdentityFile ~/.ssh/id_rsa
    TCPKeepAlive yes
    IdentitiesOnly yes
    

    You can also post the result of

    ssh -v git@github.com
    

    to have more information as to why GitHub ssh connection rejects you.

    Check also you did enter correctly your public key (it needs to end with ‘==‘).
    Do not paste your private key, but your public one. A public key would look something like:

    ssh-rsa AAAAB3<big string here>== tek...@gmail.com 
    

    (Note: did you use a passphrase for your ssh keys ? It would be easier without a passphrase)

    Check also the url used when pushing (git@github.com/..., not git://github.com/...)

    Check that you do have a SSH Agent to use and cache your key.

    Try this:

     $ ssh -i path/to/public/key git@github.com
    

    If that works, then it means your key is not being sent to GitHub by your ssh client.

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

Sidebar

Related Questions

I have a problem related to this question . I have a web service
I have a problem with my sfDoctrineGuardPlugin... this question is related to... Two tables
First of all: This question is not directly programming related. However, the problem only
This question is related to awk, I suppose. I have no experience with awk.
This question is related to this question I have a field which is a
I've noticed this question posed for a related problem with unit testing, but my
This question is related to another thread, you can read here: Forms authentication with
I apologize in advance as this question isn't directly related to a coding problem
This question is related to Symbian OS yet I think that C/C++ veteran can
This a question related to the initialization of objects in C++. I have a

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.