gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:31:50 30 4
gpt4 key购买 nike

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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com