O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — initializing a Git repository

Git needs to be initialized in the root of each development project so that it can keep a track of all of the project files. Let's do this for our newly created verge project!

  1. Open Terminal.
  2. Type the following command to change directories to our working directory:
    cd /Library/Webserver/Documents/verge/
    
    
  3. Type the following command to initialize our Git directory:
    git init
    
    
  4. Git will respond with the following:
    Initialized empty Git repository in /Library/WebServer/Documents/verge/.git/
    
    
  5. Keep your Terminal window open so that you can interact with Git in this chapter.

What just happened?

We used Terminal to initialize our Git repository by using the command git init in our working directory. Git responded ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required