Getting Started
可以透過 git --version 看看有沒有已經安裝。
Windows
我推薦下載 Git Bash
有些設定我推薦你上網看看大家怎麼做,因為我自己是一路「下一步」的那種。
搜尋關鍵字建議:"Git Bash" "Windows" "install" "config"
MacOS
下載 xcode command line tool。
$ xcode-select --install
這個指令下載的不只有 git ,還會有 gcc 之類的工具,所以會花比較多時間。
Essential Setup
用這兩行指令設定你在編輯紀錄中的名稱與信箱:
$ git config --global user.name "Your name"
$ git config --global user.email your.email@example.com