hg equivalent of git add -p?

后端 未结 4 595
我寻月下人不归
我寻月下人不归 2021-01-01 08:18

Is there a mercurial equivalent of git add -p?

Quoting from man, git-add with the option -p (or --patch) does the following:

Inte

4条回答
  •  鱼传尺愫
    2021-01-01 09:00

    If you are using TortoiseHg, it has a Shelve feature which allows you to store changes you don't want to commit to a temporary area. It allows hunk selection, just like git.

    In the TortoiseHg Workbench, this tool can be accessed in 2 ways:

    1. Click Repository -> Shelve
    2. In Commit window, select the shelve tool icon. It looks like this:

    enter image description here

提交回复
热议问题