git stash equivalents in other revision control systems?

后端 未结 3 1591
盖世英雄少女心
盖世英雄少女心 2020-12-06 01:09

Does hg, svn or others have an option like git stash?

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 01:48

    If you don't want to use shelves, you can do it the following way.

    hg diff > mylocalchanges.txt
    hg revert -a
    # Do your merge here, once you are done, import back your local mods
    hg import --no-commit mylocalchanges.txt
    

提交回复
热议问题