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