开发者

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

开发者 https://www.devze.com 2023-03-11 22:17 出处:网络
i am git/mac-newbie... I coding with Xcode 4 开发者_如何学Goand want now a remote git repository (for other persons and me).

i am git/mac-newbie...

I coding with Xcode 4 开发者_如何学Goand 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://USERNAME@PROJECTNAME.git.sourceforge.net/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?


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.

0

精彩评论

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