windows版
msysgit是Windows版的Git,從http://msysgit.github.io/下載,然後按默認選項安裝即可。
圖形化界面需要安裝TortoiseGit下載地址http://download.tortoisegit.org
linux版
先從Git官網下載源碼,然後解壓,依次輸入:./config,make,sudo make install這幾個命令安裝就好了。
yum -y install git
mac版
如果你正在使用Mac做開發,有兩種安裝Git的方法。
一是安裝homebrew,然後通過homebrew安裝Git,具體方法請參考homebrew的文檔:http://brew.sh/。
第二種方法更簡單,也是推薦的方法,就是直接從AppStore安裝Xcode,Xcode集成了Git,不過默認沒有安裝,你需要運行Xcode,選擇菜單“Xcode”->“Preferences”,在彈出窗口中找到“Downloads”,選擇“Command Line Tools”,點“Install”就可以完成安裝了。