Skip to content

Instantly share code, notes, and snippets.

@kamermanpr
Last active June 22, 2017 14:57
Show Gist options
  • Save kamermanpr/edb6507977a448590f66afd740139cbe to your computer and use it in GitHub Desktop.
Save kamermanpr/edb6507977a448590f66afd740139cbe to your computer and use it in GitHub Desktop.
Install xcode tools, homebrew, and git
#!/bin/bash
# I use this script after a clean install of macOS to re-install homebrew, git, and xcode tools.
## Install xcode tools
xcode-select --install
## Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
## Update brew and install git
brew update
brew install git
## Configure git (edit as required)
git config --global user.name "Your Name"
git config --global user.email "your.name@email.com"
git config --global credential.helper osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment