Git的安裝

Windows版本安裝

在Windows上使用Git,可以從Git官網(wǎng)直接下載安裝程序,(網(wǎng)速慢的同學(xué)請移步國內(nèi)鏡像),然后按默認(rèn)選項(xiàng)安裝即可。

安裝完成后,在開始菜單里找到“Git”->“Git Bash”,蹦出一個(gè)類似命令行窗口的東西,就說明Git安裝成功!

安裝完成后: 設(shè)置你的賬戶和郵箱

$ 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、設(shè)置username和email(github每次commit都會記錄他們)

git config --global user.name "wenbo"
git config --global user.email "1050794513@qq.com"



?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容