Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 820 Bytes

install-git.md

File metadata and controls

33 lines (28 loc) · 820 Bytes

title: Install and configure Git updated: 2013-09-15 13:57:00 os: [macosx] tags: [git] deps: [install-homebrew, install-mac-xcode-compilers] contributors: ["http://www.github.com/sloria"]

Updated 2013-09-15: Add Xcode compilers as a dependency.

# MacOSX-specific instructions
$ brew update
$ brew install git
# If you get an error:
# `Warning: /usr/bin occurs before /usr/local/bin`
# Then add the following to your shell profile (.bash_profile, .zshrc, etc.)
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
# Make sure you are using the right git binary
$ which git
# should be "/usr/local/bin/git"
# Configure git with your name and email
$ git config --global user.name "Django Reinhardt"
$ git config --global user.email "man_with_guitar@hotmail.com"