How do I put a bunch of uncommitted changes aside while working on something else

前端 未结 4 1031
夕颜
夕颜 2021-01-30 02:49

If I have a bunch of uncommitted changes and want to set it aside while working on something else instead, and then later (f.i. after several days) come back to it and proceed w

4条回答
  •  轮回少年
    2021-01-30 03:31

    To keep local uncommited changes, easiest way for me is just to save them as a patch file.

    hg diff > /tmp/`hg id -i`.patch
    

    and when you need to return to previous state:

    hg up 
    hg patch --no-commit /tmp/.patch
    

提交回复
热议问题