Unable to Git-push master to Github
Posted
by Masi
on Stack Overflow
See other posts from Stack Overflow
or by Masi
Published on 2009-05-28T17:36:45Z
Indexed on
2010/04/06
0:43 UTC
Read the original article
Hit count: 398
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 Git to ask passphares?
© Stack Overflow or respective owner