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"