2
當一個項目開始在Mercurial中,在「hg init」創建一個項目並推送到服務器之後,如何使本地目錄具有服務器的「hg path」?
mkdir proj
cd proj
hg init
[create some files]
hg add file.txt
hg commit
hg push ssh://[email protected]/proj
現在,當發出hg path
,什麼都不會顯示。我們如何實際更改存儲庫,使其彷彿從[email protected]/proj
克隆?難道僅僅通過編輯.hg/hgrc並添加
[paths]
default = ssh://[email protected]/proj
,因爲這感覺像過低水平的運做(通過編輯一個文本文件)
這裏的水銀對這個問題的主要作者:http://twitter.com/mpmselenic/status/8392230762 – 2010-08-13 01:10:22