Skip to content
July 11, 2012 / windperson

Windows上使用TortoiseHg和git repository連動

使用hg-git這個mercurial的外掛:

安裝:

1.安裝TortoiseHg。

2.開啟command line視窗,輸入以下command:

hg clone http://bitbucket.org/durin42/hg-git d:\hg_extensions\hg-git

最後一個d:\…的參數,請自己指定要放hg-git原始碼的目錄。

 3.修改自己的mercurial.ini,加入這些內容:

[extensions]
hggit = D:\hg_extensions\hg-git\hggit

[ui]
ssh = “C:\Program Files\TortoiseHg\TortoisePlink.exe”

使用:

  • 下載程式碼:在command line視窗直接使用mercurial的clone功能即可,例如:
    hg clone git://github.com/Redth/PushSharp.git
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: