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.
- Download from http://git-scm.com/download/mac
- Mount the .dmg file and install the .pkg package inside the image.
- 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
- 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