Thanks for all your help.
I realised that my project was in a sub-directory like x/y and I was
trying to push from x, instead of x/y.
When I entered "git remote show origin" on x/y, I saw that the url was
configured correctly, and I was able to push to the remote repository.
On Sep 23, 3:13 pm, Jeffrey <jefr...@gmail.com> wrote:
> On Sep 22, 1:43 pm, erenay <erenay...@gmail.com> wrote:
> > "git remote show origin" returned
> > fatal: 'origin': unable to chdir or not a git archive
> > fatal: The remote end hung up unexpectedly
> On Sep 22, 2:59 pm, "Michael P. Soulier" <msoul...@digitaltorque.ca>
> > On 22/09/09 erenay said:
> > > My crone url is like: g...@github.com:x/y.git
> > > I clone it by using git clone g...@github.com:x/y.git
> > Works for me. Perhaps you should take it up with github.
> Does 'git remote' show a list including origin? If not, you have
> managed to lose the named remote 'origin' pointing to where you cloned
> from. If it is there, are you able to clone again using the same
> URL? If no, you've got a problem on the other end. If yes... look
> in .git/config for a section like this:
> [remote "origin"]
> url = ...
> fetch = +refs/heads/*:refs/remotes/origin/*
> and make sure the url is correct, fetch is set to that (or something
> else valid, if you know what you're doing), and there aren't any other
> bizarre settings in that section.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to
For more options, visit this group at