开发者

can't push git readynas

I am writing an app using xcode 4. I have no experience with git, or any form of source control other than copy/paste a new folder!

I have setup git on my readyNAS duo using this Guide

I can then add the repository in xcode using:

ssh://root@192.168.1.10/opt/git/Developer

Developer being the repository.

Xcode then gives me the option to clone, which it can do and it creates an开发者_JS百科 empty repository in the filesystem on the client(MacBook Pro)(I expect it to be empty as I haven't pushed anything to it)!

Any program started and saved in the developer folder can commit locally, however when I wish to push over the network I get this error:

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

As a newbie I really don't have any idea about the source of the problem, I have tried this from two client Mac's running snow leopard to my ReadyNAS Duo running 4.1.7.

What do I need to do to address this problem?


Try doing this from Terminal:

Go to the repository location ( wherever XCode cloned your repo)

Run

git remote add Developer ssh://root@192.168.1.10/opt/git/Developer

Now try doing the push. I am not familiar with how XCode's git integration works, but the error suggests that it is trying to use a remote named Developer, which is not found.

Usually, it should try doing it on origin, which is the remote that is automatically setup when you clone. See if you can change the remote that it is trying to pust to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜