Mac OS X: install git without xcode








git is included in xcode. but if you just want git, you do not have to install the xcode. You can download and install git for mac.
  1. Download from http://git-scm.com/download/mac
  2. Mount the .dmg file and install the .pkg package inside the image.
  3. After installation you need to prepend /usr/local/git/bin to /etc/paths file and remove /etc/paths.d/git:
    sudo sed -i  -e  '1s/^/\/usr\/local\/git\/bin\'$'\n/g' /etc/paths; rm /etc/paths.d/git
  4. Set PATH environment variables for non-terminal applications:
    /usr/local/git/bin/setup\ git\ PATH\ for\ non-terminal\ programs.sh



No comments:

Post a Comment