简体   繁体   English

Mac Os X - Xcode4 和远程 git-repository(以及 Mac 上的本地存储库)

[英]Mac Os X - Xcode4 and remote git-repository (and a local repository on the Mac)

i am git/mac-newbie...我是 git/mac 新手...

I coding with Xcode 4 and want now a remote git repository (for other persons and me).我使用 Xcode 4 进行编码,现在想要一个远程 git 存储库(供其他人和我使用)。 I want the remote repository on my mac and a local copy too (like the local repository's on the other computers)我想要我的 mac 上的远程存储库和本地副本(就像其他计算机上的本地存储库一样)

I started with creating a repository: git init git add.我从创建存储库开始: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://USERNAME@PROJECTNAME.git.sourceforge.net/gitroot/PROJECTNAME/REPONAME 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://USERNAME@ PROJECTNAME.git.sourceforge.net/gitroot/PROJECTNAME/REPONAME

But i dont want the repository on sourceforge.但我不想要 sourceforge 上的存储库。 I want it on my machine.我希望它在我的机器上。 I downt know how i adress my Mac over the network, or how i can reach it.我不知道如何通过网络对我的 Mac 进行寻址,或者如何访问它。 Is there something like "localhost" and need i ssh?有没有像“localhost”这样的东西,需要我 ssh?

Actually it depends on your installation of git as GIT is not included in the MacOS X distribution.实际上,这取决于您安装的 git,因为 GIT 不包含在 MacOS X 发行版中。 I wrote the tutorial with a certain installation in mind.我在编写教程时考虑了某种安装。 I will update it accordingly - so it matches to all kinds of git.我会相应地更新它 - 所以它匹配各种 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.请注意 - 如果您使用更新的 XCode 运行 MacOS X Lion 客户端或服务器版本,则 git 将已经板载。 I've rewritten the tutorial (see this link) for the new changes with Lion.我已经为 Lion 的新变化重写了 教程(请参阅此链接)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM