Check in single file with Mercurial?

前端 未结 3 1980
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 20:06

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

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 20:49

    Just do:

    hg ci -I path/to/file -m "commited only one file"
    

    That commits only one file, and you can push it, and none of the uncommitted changes will be affected.

提交回复
热议问题