標籤:版本控制 git 代碼託管 tortoisegit [email protected]
TortoiseGit是一個免費開放的,為git版本控制系統服務的圖形介面用戶端。TortoiseGit沒有整合Git。如果你沒有安裝過Git,那麼需要先安裝Git。
工具
windows
Git
TortoiseGit
[email protected]
方法/步驟一、下載安裝Git1、下載Git
從選擇合適自己的版本,這裡是Windows下安裝,因此選擇Windows,http://git-scm.com/download
2、安裝Git
下載完成後,雙擊安裝。Wdindows安裝軟體,這裡不再細說。
使用TortoiseGit在[email protected]代碼託管的簡單操作。
二、下載安裝TortoiseGit1、下載TortoiseGit
從選擇合適自己的版本,http://tortoisegit.org/
下載頁面也有中文語言套件(如果需要)
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/76/EB/wKiom1Zewu3QQO3nAAINxZmAZds320.png" height="443" />
2、安裝TortoiseGit
下載完成後,雙擊安裝。Wdindows安裝軟體,這裡不再細說。
中文安裝包在TortoiseGit安裝完成後雙擊安裝。
安裝完成後在案頭右擊滑鼠查看新增功能項,我這裡顯示的圖片是已經設定好中文了。
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/76/EB/wKiom1Zewv7TWoYWAAobwCuDTag716.png" height="579" />
三、配置TortoiseGit1、在你的要建的git目錄下,右鍵TortoiseGit->設定,設定git安裝路徑並檢查,應用;
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/76/EA/wKioL1Zew2eC_K9wAAIspvF4M4o959.png" height="636" />
2、設定使用者資訊,右鍵TortioseGit->設定->Git->全域;
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/76/EB/wKiom1ZewwKSf-WpAAIXH1GdjsA291.png" height="636" />
3、設定SSH用戶端
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/76/EA/wKioL1Zew2zjIb_zAAGjFVM_ArM388.png" height="636" />
4、產生ssh-rsa公私密金鑰
請參考:http://ygqygq2.blog.51cto.com/1009869/1718283
5、登入[email protected],設定檔->SSH公開金鑰->添加公開金鑰;
寫上公開金鑰標題,將Public key複製,粘貼到公開金鑰裡後確定。
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/76/EA/wKioL1Zew23yEHd0AADeRyhHF78037.png" height="428" />
四、複製工程到本地1、複製ssh連結;
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/76/EB/wKiom1ZewwajIJqTAAAV4sCTVOY930.png" height="140" />
2、在需要建git倉庫的目錄下,右鍵->Git 複製,把連結粘貼到URL;
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/76/EB/wKiom1ZewwfwitFFAAA9ZtaqpO4229.png" height="397" />
3、複製完成後,設定遠端url、密鑰;
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/76/EB/wKiom1ZewwmzFxgGAAHKfEBOyJI108.png" height="636" />
4、測試推送
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/76/EB/wKiom1ZewwqC0sKHAABGIY4MSr0595.png" height="498" />
推送結果
650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/76/EB/wKiom1ZewwqyTJ4RAAA1ohJWdrA649.png" height="350" />
註:此處不再詳細介紹TortoiseGit的使用方法,其自身有很好的協助文檔
windows下使用TortoiseGit在[email protected]代碼託管