作為一名開發者怎么可能沒有?[Git](http://git-scm.com/)?呢? 我們馬上就來安裝:
~~~
$ brew install git
~~~
好的,現在我們來測試一下 git 是否安裝完好:
~~~
$ git --version
~~~
運行?`$ which git`?將會輸出?`/usr/local/bin/git`.
接著,我們將定義你的 Git 帳號(與你在?[GitHub](https://github.com/)?使用的用戶名和郵箱一致)
~~~
$ git config --global user.name "Your Name Here"
$ git config --global user.email "your_email@youremail.com"
~~~
這些配置信息將會添加進?`~/.gitconfig`?文件中.
我們將推薦使用 HTTPS 方法(另一個是 SSH),將你的代碼推送到 Github 上的倉庫。如果你不想每次都輸入用戶名和密碼的話,可以按照此?[描述](https://help.github.com/articles/set-up-git)?說的那樣,運行:
~~~
$ git config --global credential.helper osxkeychain
~~~
此外,如果你打算使用 SSH方式,可以參考此?[鏈接](https://help.github.com/articles/generating-ssh-keys).