Mac Os X - Xcode4 和远程 git-repository(以及 Mac 上的本地存储库)
我是 git/mac-newbie...
我使用 Xcode 4 进行编码,现在想要一个远程 git 存储库(供其他人和我使用)。 我想要我的 mac 上的远程存储库和本地副本(就像其他计算机上的本地存储库一样)
我开始创建一个存储库: git初始化 git 添加 . 。 。 。
我认为我的问题是“创建一个远程存储库”。 教程说我必须使用这个命令: git 远程添加远程 ssh://git 在 git.petermac.com/usr/local/share/gitrepos/myprojectname].git 或者 git 远程添加原点 \ ssh://[电子邮件受保护]/gitroot/PROJECTNAME/REPONAME
但是我不想要 sourceforge 上的存储库。我想要它在我的机器上。 我不知道如何通过网络寻址我的 Mac,或者如何访问它。 是否有类似“localhost”的东西并且需要 ssh?
i am git/mac-newbie...
I coding with Xcode 4 and want now a remote git repository (for other persons and me).
I want the remote repository on my mac and a local copy too (like the local repository's on the other computers)
I started with creating a repository:
git init
git add .
.
.
.
and i think my problem is "make a remote repository".
the tutorials says i have to use this command:
git remote add remote ssh://git at git.petermac.com/usr/local/share/gitrepos/myprojectname].git
or
git remote add origin \
ssh://[email protected]/gitroot/PROJECTNAME/REPONAME
But i dont want the repository on sourceforge. I want it on my machine.
I downt know how i adress my Mac over the network, or how i can reach it.
Is there something like "localhost" and need i ssh?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上这取决于你安装的 git,因为 MacOS X 发行版中不包含 GIT。我在编写本教程时考虑到了特定的安装。我会相应地更新它 - 所以它与所有类型的 git 相匹配。谢谢你的信息。
已更新 :-)
请注意 - 如果您运行带有更新的 XCode 的 MacOS X Lion 客户端或服务器版本,git 将已经内置。我重写了 教程 (请参阅此链接) 了解 Lion 的新变化。
Actually it depends on your installation of git as GIT is not included in the MacOS X distribution. I wrote the tutorial with a certain installation in mind. I will update it accordingly - so it matches to all kinds of git. Thanks for the info.
updated :-)
Please note - if you run MacOS X Lion client or server version with an updated XCode, git will be onboard already. I've rewritten the tutorial (see this link) for the new changes with Lion.