windows 安裝git

來源:互聯網
上載者:User

標籤:bsp   net   虛擬   技術分享   http   瀏覽器   download   http協議   repos   

搭建環境:windo server 2012

方案:

伺服器端:gitblit。:http://www.gitblit.com/

用戶端:git for windows。:https://git-scm.com/downloads

 

具體步驟:

伺服器端:

1.下載jdk。:http://rj.baidu.com/soft/detail/17531.html?ald(也可以官網下,但速度太慢)

gitblit需要java運行環境,所以需要下載jdk。

2.安裝jdk,並設定環境變數。

參考教程:http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html

3.下載gitblit並配置。

參考:http://www.codeceo.com/article/windows-git-server.html

官網說明:http://www.gitblit.com/setup_go.html

 

具體配置

配置(其中艱辛就不想說,都是淚): 
1、安裝java虛擬機器(這個東西是因為gitblit是個java的產物,所以運行起來需要java環境的支援) 
64位 
32位

2、解壓後編輯data/gitblit.properties檔案 
server.httpPort = 8000 http協議的連接埠 
server.httpsPort = 8001 https 協議的連接埠 
server.httpBindInterface = localhost http協議下伺服器端訪問的網址 
server.httpsBindInterface = localhost https協議下伺服器端訪問的網址 
git.repositoriesFolder = E:\GitServiceRoot 這個是存放Git庫的檔案夾

: 

3、運行一級目錄下的gitblit.cmd 批次檔 
運行開始時 

4、配置完成後,在瀏覽器輸入http://localhost:8000或者https://localhost:8001後就可以看到登入成功了;

5、預設賬戶密碼都是admin

本菜鳥目前剛配置成功!!!! 
明天繼續研究,後續會繼續將自己的心得記錄下來,以免自己失憶。如若幫到別人,也是極好的。

windows 安裝git

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.