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

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?

  • How to Handle Merge Conflicts through Custom Perl Script
  • Git: How do I set up SSH keys to access my remote repository from a second computer?
  • Source Control questions
  • Can't commit a delete using git-svn: Your file or directory is probably out of date
  • Git : Failed at pushing to remote server, ' REPOSITORY_PATH ' is not a git command
  • Can't push to remote branch, cannot be resolved to branch
  • What is the difference between git push and git push origin
  • How to setup a Git server which use User/Password?
  • how to pick single lines from a pull request
  • How to display RoR app code version on heroku?
  • How to git push using git-emacs?
  • Precise git staging by line
  • 2 Solutions collect form web for “How to set up a Git repository for an Xcode project?”

    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

    See this:

    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.)

    Git Baby is a git and github fan, let's start git clone.