1
改變我已經使用汞克隆獲得的本地文件夾如何合併在水銀
hg clone http://example.com/prj
一個項目的工作副本我想修改一些文件,以滿足我的需求。例如原始文件的樣子:
int main() {
cout << "hello";
return 0;
}
所以我改變這樣的:
int main() {
int a = 0;
cout << "hello";
return 0;
}
後來主庫的變化,看起來像這樣(與第一片段):
int main() {
for (int i=0; i<10; i++)
cout << "hello";
return 0;
}
現在,當我運行
hg pull
hg update
我的更改int a=0;
已丟失。
你的意思是我要運行「汞承諾」就在「hg pull」之前? – mahmood 2012-02-21 07:54:30
完成更改後,是的。 – Kimvais 2012-02-21 07:55:12
對不起...你的意思是我必須運行1)hg commit,2)hg pull,3)hg merge,4)hg update? – mahmood 2012-02-21 07:56:26