Windows版本安裝
在Windows上使用Git,可以從Git官網直接下載安裝程序,(網速慢的同學請移步國內鏡像),然后按默認選項安裝即可。
安裝完成后,在開始菜單里找到“Git”->“Git Bash”,蹦出一個類似命令行窗口的東西,就說明Git安裝成功!
安裝完成后: 設置你的賬戶和郵箱
$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"
Mac版本安裝
1、未安裝homebrew,需安裝homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、安裝git
brew install git
3、設置username和email(github每次commit都會記錄他們)
git config --global user.name "wenbo"
git config --global user.email "1050794513@qq.com"