Skip to content

Instantly share code, notes, and snippets.

@mamboer
Last active August 29, 2015 14:06
Show Gist options
  • Save mamboer/6d908d5d620dcae683bf to your computer and use it in GitHub Desktop.
Save mamboer/6d908d5d620dcae683bf to your computer and use it in GitHub Desktop.
Update mac's git using Homebrew
### Firstly
Install git via homebrew
```
brew --version
brew doctor
brew install git
```
### Secondly
Add /usr/local/bin in your ~/.bash_profile
```
export PATH="/usr/local/bin:$PATH"
```
### Finally
Reload your bash by reopening your terminal.
And, you can update git using the command as below:
```
brew update git
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment