其他版本控制系统中的git stash等价物? [英] git stash equivalents in other revision control systems?

查看:112
本文介绍了其他版本控制系统中的git stash等价物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否hg,svn或其他人有类似git存储的选项?

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

推荐答案

该功能的通用名称是:

搁置:将中间修订版实际上传到服务器而不真正检查它们的能力。

在CVCS集中式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.

有:

  • 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比较表


  • 确保: keep / co (这是有争议的在这个问题

  • Bazaar:shelve / unshelve

  • Darcs:回复/反转

  • Accurev: keep / co (this is disputed in this question)
  • Bazaar: shelve / unshelve
  • Darcs: revert / unrevert

这篇关于其他版本控制系统中的git stash等价物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆