无法推送 git Readynas
我正在使用 xcode 4 编写一个应用程序。除了复制/粘贴新文件夹之外,我没有使用 git 或任何形式的源代码管理的经验!
我已经使用这个指南
然后我可以使用以下方法在 xcode 中添加存储库:
ssh://[email protected]/opt/git/Developer
开发人员是存储库。
然后,Xcode 为我提供了克隆选项,它可以执行此操作,并在客户端(MacBook Pro)上的文件系统中创建一个空存储库(我希望它是空的,因为我没有向其中推送任何内容)!
任何在开发人员文件夹中启动并保存的程序都可以在本地提交,但是当我希望通过网络推送时,我收到此错误:
致命:“开发人员”似乎不是 git 存储库 fatal:远端意外挂断
作为一个新手,我真的不知道问题的根源,我已经从两台运行雪豹的 Mac 客户端到运行 4.1.7 的 ReadyNAS Duo 进行了尝试。
我需要做什么来解决这个问题?
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://[email protected]/opt/git/Developer
Developer being the repository.
Xcode then gives me the option to clone, which it can do and it creates an 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试从终端执行此操作:
转到存储库位置(XCode 克隆存储库的位置)
立即运行
尝试进行推送。我不熟悉 XCode 的 git 集成是如何工作的,但错误表明它正在尝试使用名为 Developer 的远程,但未找到该远程。
通常,它应该尝试在原点上执行此操作,这是克隆时自动设置的远程。看看是否可以更改它尝试按下的遥控器。
Try doing this from Terminal:
Go to the repository location ( wherever XCode cloned your repo)
Run
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.