Perform an empty commit with mercurial

后端 未结 3 1221
灰色年华
灰色年华 2021-01-04 02:29

With with Mercurial queues extension, I can make an empty commit with some commit message like so:

hg qnew patch_name -m \"message\"

Is the

3条回答
  •  无人及你
    2021-01-04 03:29

    You can now create empty commits by just doing hg ci -m "empty commit"

    e.g.

    hg branch my-next-branch
    hg ci -m "empty commit"
    

    Will create a my-next-branch with a single empty commit that you can push to the remote repo.

提交回复
热议问题