2009年11月9日 星期一

Subversion and Git

http://code.google.com/p/tortoisegit/


///////////////////////////////////////////////////////
早上才剛看過Rex 報導寫出 Linus Torvalds on git ,主要介紹Linus對於CVS與Subversion的針砭,晚上就看到TortoiseGit,海龜太神!!

每個版本控管軟體都要插上一腳。雖然現在還是用Subversion居多(還是有些專案還是在CVS上),但看來Git還不賴,有空還是找來試試..


///////////////////////////////////////////////////////
Subversion 對於使用 Windows 的用戶, 都是用 TortoiseSVN.

Git 一直沒有 for Windows 用戶的 Client 可以用(與人共事就很難推薦使用), 這幾天總算有看到 TortoiseGit (註: 手邊沒有 Windows, 不確定使用有沒有問題, 不過應該可以嘗試看看~)

* 詳細可見: tortoisegit - Google Code

(註: 要安裝 tortoisegit 前, 要先安裝 msysgit)


///////////////////////////////////////////////////////
要在 Windows 上使用 Git,可以使用 msysgit + tortoisegit。
msysgit 是 Git 的核心,而 tortoisegit 則是提供一個不錯的 UI。

簡單的安裝順序:

* 先安裝 msysgit
* 選擇 PATH 時請選 Please choose add git path to windows command line,配合 tortoisegit
* 安裝 tortoisegit,安裝完後會要求重開機。
* 重開機後,點選任一資料夾右鍵選擇 git bash 進入 command line 視窗
* 生好你的 public key 後,記得先連線到你的 git server
#ssh yourgitserver
會這麼做的原因是第一次登入時會有這個問題
The authenticity of host 'gitserver' can't be established.
DSA key fingerprint is 73:da:f4:e6:77:9c:27:44:1a:ca:eb:72:f1:fa:c8:08.
Are you sure you want to continue connecting (yes/no)?
如果不在這裡先主動連一次的話接下來在 tortoisegit 做事時會爛掉。
* 將你的 public key 丟上你的 git server 後就可以正常做事了。

另外要注意的事:

* 這兩個軟體都在持續更新,而且很快,我也是最近才發現終於堪用,建議常常去看有沒有得更新。
* 請不要用非 Ascii Code 的語系為檔名(比方說中文檔名),在不同 codepage 的 system 上會出問題,因為 git 是存 raw bytes.詳情可以參考:
http://code.google.com/p/msysgit/issues/detail?id=230

///////////////////////////////////////////////////////

沒有留言: