參考資料:
http://hron.me/blog/2013/01/gitiles-install-howto/
https://android.googlesource.com/
https://code.google.com/p/gitiles/
本人改寫後的Gitiles:https://github.com/airk000/Gitiles_one_click
優點:配置簡單,一鍵式搭建,方便快捷。
使用方法:
1.將項目clone到本地
2.按照gitiles.config.sample書寫自己的設定檔gitiles.config
[gitiles] # Repositories placed here basePath = /srv/git/repositories //你的git項目所在的根目錄 # Do not check they are exported exportAll = true # This URL will be displayed as clone URL. DO NOT FORGET TRAILING SLASH! baseGitUrl = ssh://cr.hron.me:29418/ //顯示在git clone處的地址 # Title of site (doh) siteTitle = Gitiles - kingmax.hron.me:/srv/git/repositories //網頁Title # I dunno why, but it is have to be configured. canonicalHostName = kingmax.hron.me //好吧,作者不知道為什麼,我也不知道……反正就是要設定
3.開始
./tools/run_dev.sh start
服務就在後台執行了。可以訪問本地地址進行測試:127.0.0.7:8080
4.結束
./tools/run_dev.sh stop
服務關閉。
PS:感謝博主 Gábor Garami 提供的使用協助。