使用Mercurial签入单个文件? [英] Check in single file with Mercurial?

查看:54
本文介绍了使用Mercurial签入单个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您执行hg status,并且已修改了三个文件.我知道如何检入所有三个文件(hg commit).但是,您怎么能(仅一个)签入(然后hg push)已修改的文件?

Let's say you do hg status and you have three files modified. I know how to check in all three files (hg commit). But how can you check in (and then hg push) just one of the modified files?

推荐答案

请检查 hg help commit 的输出表明您可以执行

Please check the output of hg help commit which reveals that you can do

hg commit foo.c

如果您只想提交一个文件.就像Subversion和许多其他系统一样-没有局限性:-)

if you just want to commit a single file. This is just like Subversion and many other systems — no hocus-pocus :-)

这篇关于使用Mercurial签入单个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆