1. 程式人生 > >git 伺服器支援 WEB

git 伺服器支援 WEB

1安裝git:  sudo apt-get install git , 安裝好後按照提示,配置使用者名稱與郵箱
2
安裝lighttpd:  sudo apt-get install lighttpd
3
隨便進入一個git倉庫, 如我的倉庫在/tmp/wk/下: cd /tmp/wk/
開啟git web服務: git instaweb
4
預設埠是1234, 在瀏覽器輸入: http://localhost:1234試試吧。如果你的主機已經有自己的域名,把localhost 替換成你的域名試試吧.‘