git stash 的 Mercurial(hg) 等价物是什么?

Aas*_*hal 7 git mercurial

hg 中git stashgit stash apply和的等效命令是什么git stash pop

Sul*_*ina 8

暂时搁置您的更改:

Mercurial hg commit [-s]是首选 hg shelve不推荐

git git stash

清单更改已收起

水银 hg xlhg shelve -l

git git stash list

查看入库变更

水银 hg diff -c <rev>hg shelve -p <name>

git git stash show <name>

恢复入库变更

水银 hg uncommit --no-keephg unshelve

git git stash pop

恢复已存放的更改但将其保留在堆栈中

Mercurial 继续修改 或 hg uncommit --keephg unshelve --keep

git git stash apply

  • 我经常使用hg shelve,为什么说不推荐呢? (5认同)