5
2
I setup GIT in a Windows and a Ubuntu. Both of them works well locally. Now I want to put some repository from Windows to Ubuntu. I think I can use 'git push' in the Windows, or use 'git clone' in the Ubuntu. But neither works.
When I use
git push -v xxx.xxx.xxx.xxx:/share/source/repo.git
At begining, I got an error:
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
After I used putty to save the host key, the error message disappeared. Then I got a
does not appear to be a git repository
error. After I modified the path to repository, the error message disappeared too. Now I get:
fatal: The remote end hung up unexpectedly
I didn't get enough information from the message.
So I want to check the git's log in both Windows and Ubuntu side to check what happened. But after googling 'git log', all entries are about git commit history. that's not what I need.
Can anyone shred me some light on this?
It would also help if you posted which commands you used exactly. It seems that you just followed the wrong procedure, but we can't help you without additional information. – slhck – 2011-05-25T09:32:46.013
what does
git remotesay? – Sathyajith Bhat – 2011-05-25T10:16:49.807@slhck, I modified my original post. I use 'git push'. @Sathya, 'git remote' output nothing. Thanks. – Landy – 2011-05-25T23:46:44.973
1Use
git push -vto get verbose output, then please post the exact command you are using as well as the output from this command. – Stephen Jennings – 2011-05-26T01:27:52.640@Stephen Jennings, even I add the -v option, it still reports only 'Fatal: The remote end hung up expectedly.' Thanks. My command is 'git push -v xxx.xxx.xxx.xxx:/share/source/repo.git' – Landy – 2011-05-26T05:12:02.127