Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a Git repository for an Xcode project? [duplicate]

Tags:

git

repository

Possible Duplicate:
How to quickly set up Git for teams using Xcode?

I have an Xcode project folder on my Mac HD. Snow Leopard. The GitX GUI expects that I already have an Git repository. So I guess since I have GitX installed, I also have Git, and now I need to be cool and intelligent and know what to hack into the Terminal. But what? Is there any tutorial that explains this in minutes, not hours or even days?

like image 349
Proud Member Avatar asked Nov 22 '10 22:11

Proud Member


2 Answers

just git init in that folder

this is a 20 minute git link

and this is a every day most needed commands

and this is the community book for further reading

this SO post will help you also

like image 160
Ahmed Kotb Avatar answered Oct 14 '22 19:10

Ahmed Kotb


See this:

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#creating-a-new-repository

Basically, go into the root of your project and type:

$ git init
$ git add .
$ git commit

(And note the . ad the end of the git add . command.)

like image 27
Ben Lee Avatar answered Oct 14 '22 19:10

Ben Lee