git - IntelliJ 的 Shelve 和 Git stash 有什么区别?

标签 git intellij-idea git-stash

IntelliJ 支持 git stashes 以及它自己内置的 shelve 命令。这些似乎在目的和效用上几乎相同。它们有什么区别?

最佳答案

来自 IntelliJ documentation :

In the Git integration, in addition to shelving and unshelving, "stashing" and "unstashing" are supported respectively. These features have much in common, the only difference is in the way patches are generated and applied.

  • Patches with stashed changes are generated by Git itself. To apply them later, you do not need IntelliJ IDEA.
  • Patches with shelved changes are generated by IntelliJ IDEA. Normally, they are also applied through the IDE. Applying shelved changes outside IntelliJ IDEA is also possible but requires additional steps.

关于git - IntelliJ 的 Shelve 和 Git stash 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32982204/

相关文章:

GIT如何将master merge 到用-single-branch克隆的分支

安卓工作室错误 : Configuration with name 'default' not found

ruby-on-rails - Gitlab错误 - 存储库不存在

java - 在很多实体中自动生成 toString 方法

java - 设置调试环境 - Intellij Tomcat Maven

git - 如何使用git比较文件的工作副本、暂存副本和提交副本

intellij-idea - 您可以增加 IntelliJ IDEA 中的粘贴缓冲区大小吗

git stash 和 pop 显示文件不再标记为已移动?

git - 应用 stash 更改的问题

git - 防止 git stash 使用非托管文件?