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 — using Git to install Sag

Git makes setting up third party libraries really easy and allows us to update to the new versions when they are available.

  1. Open Terminal.
  2. Type the following command to make sure that you are in the working directory:
    cd /Library/Webserver/Documents/verge/
    
    
  3. Add Sag to our repository using Git:
    git submodule add git://github.com/sbisbee/sag.git lib/sag
    git submodule init
    
    

What just happened?

We used Git to add Sag into our project using git submodule add, and then we initialized the submodule by typing git submodule init. Git's submodules allow us to have a full-fledged Git repository living inside of our repository. Any time a new release is made to Sag, you can run git submodule update, and you will receive ...

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