没有 Stash/Tags 的 Git

2作者: birb075 个月前原帖
如果没有暂存和标签,Git会不会更简单?<p>标签可以被删除和重新创建,因此它们就像分支一样,并不是某些人所说的不可变的。<p>暂存也是如此。它们是无法推送的提交。暂存可以通过创建一个新分支并用生成的名称进行提交来实现。<p>我是不是遗漏了什么?这两者提供的价值是否超过了它们带来的复杂性和学习成本呢? :)
查看原文
Wouldn&#x27;t git be simpler without stashes and tags?<p>Tags can be deleted and recreated, so they are just like branches and not immutable as some claim.<p>Same goes for stashes. They are commits which can&#x27;t be pushed. Stashes could be implemented by creating a new branch and committing both with a generated name.<p>Am I missing something? Do both things provide more value than they add complexity&#x2F;things to learn? :)