[git-users] Re: "unable to chdir or not a git archive"

2009-09-24 Thread erenay

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.

Thanks again.


On Sep 23, 3:13 pm, Jeffrey  wrote:
> On Sep 22, 1:43 pm, erenay  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" 
> wrote:
>
> > 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.
>
> Jeffrey
--~--~-~--~~~---~--~~
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 git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~--~~~~--~~--~--~---



[git-users] Re: "unable to chdir or not a git archive"

2009-09-23 Thread Jeffrey

On Sep 22, 1:43 pm, erenay  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" 
wrote:
> 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.


Jeffrey
--~--~-~--~~~---~--~~
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 git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~--~~~~--~~--~--~---



[git-users] Re: "unable to chdir or not a git archive"

2009-09-22 Thread Michael P. Soulier
On 22/09/09 erenay said:

> Thanks for the quick response Michael.
> 
> "git remote show origin" returned
> fatal: 'origin': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly
> 
> Can you try to give some idea about how the remote path might be
> wrong?
> 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.

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


signature.asc
Description: Digital signature


[git-users] Re: "unable to chdir or not a git archive"

2009-09-22 Thread erenay

Thanks for the quick response Michael.

"git remote show origin" returned
fatal: 'origin': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly

Can you try to give some idea about how the remote path might be
wrong?
My crone url is like: g...@github.com:x/y.git
I clone it by using  git clone g...@github.com:x/y.git

Thanks.



On Sep 22, 7:19 pm, "Michael P. Soulier" 
wrote:
> On 22/09/09 erenay said:
>
> > I initialise a git repository,
> > then I clone my project fom the remote github repository,
> > I add a single line to one of the classes,
> > do "git add ." and "git commit -a" and after I type
> > "git push" I get the error:
>
> > fatal: 'origin': unable to chdir or not a git archive
> > fatal: The remote end hung up unexpectedly
>
> > What might be the problem?
>
> Obviously your remote path is not correct for pushing.
>
> Lets see
>
> git remote show origin
>
> Mike
>
>  application_pgp-signature_part
> < 1KViewDownload
--~--~-~--~~~---~--~~
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 git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~--~~~~--~~--~--~---



[git-users] Re: "unable to chdir or not a git archive"

2009-09-22 Thread Michael P. Soulier
On 22/09/09 erenay said:

> I initialise a git repository,
> then I clone my project fom the remote github repository,
> I add a single line to one of the classes,
> do "git add ." and "git commit -a" and after I type
> "git push" I get the error:
> 
> fatal: 'origin': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly
> 
> What might be the problem?

Obviously your remote path is not correct for pushing.

Lets see

git remote show origin

Mike


pgpNLwEBqd8eh.pgp
Description: PGP signature