gpt4 book ai didi

composer-php - Composer 放弃更改 : what do the [y, n,v,d,s,?] 执行

转载 作者:行者123 更新时间:2023-12-03 04:38:56 26 4
gpt4 key购买 nike

这个简单的问题困扰了我几个月。

有时我会深入到供应商目录中修复错误(特别是对于我们的内部库)。将修复程序迁移并部署回源包后,我将在主项目中 composer update company/package 并被询问:

Discard changes [y,n,v,d,s,?]

我对 yn 有很好的掌握,但无法找到有关 vd 的文档s做什么?我总是点击y,但也许我错过了一些有用的东西。

<小时/>

编辑:

  • 添加了 d 选项(2017 年 10 月)

最佳答案

选择会显示详细信息:

y - discard changes and apply the update
n - abort the update and let you manually clean things up
v - view modified files
d - view local modifications (diff)
s - stash changes and try to reapply them after the update

您也可以查看源码,相关部分为here .

关于composer-php - Composer 放弃更改 : what do the [y, n,v,d,s,?] 执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25828102/

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