其他版本控制系统中的 git stash 等效项? [英] git stash equivalents in other revision control systems?
本文介绍了其他版本控制系统中的 git stash 等效项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hg、svn 或其他有没有像 git stash 这样的选项?
Does hg, svn or others have an option like git stash?
推荐答案
该功能的通用名称是:
搁置:无需真正签入即可将中间修订实际上传到服务器的能力.
在 CVCS(Centralized VCS)中,您实际上需要将这些中间数据上传到中央服务器.
但是在DVCS(分布式VCS)中,你只需要存储它们在本地存储库中.
Shelving: the ability to actually upload intermediate revisions to the server without really checking them in.
In a CVCS (Centralized VCS), you actually need to upload those intermediate data to a central server.
But in a DVCS (Distributed VCS), you just need to store them in a the local repository.
有:
- Mercurial 的搁架扩展
- SVN 的临时分支 或 补丁文件
- p4tar(同样基于补丁)适用于 Perforce,即使 Perforce 2009.2 现在具有搁置和取消搁置功能.莉>
- 保存在塑料 SCM 中的检出数据(用于搁置数据)
- the shelve extension for Mercurial
- temporary branches for SVN, or patch files
- p4tar (again patch based) for Perforce, even though the Perforce 2009.2 has now shelve and unshelve features.
- saved checked-out data in Plastic SCM (for shelving data)
您可以在此维基百科上的 SCM 比较表中找到所有其他 SCM 搁置命令.
- Accurev:
keep/co(这是有争议的在这个问题中) - 集市:搁置/取消搁置
- Darcs:还原/不还原
这篇关于其他版本控制系统中的 git stash 等效项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文