composer discard changes: what do the [y,n,v,d,s,?] do

后端 未结 2 982
青春惊慌失措
青春惊慌失措 2021-01-30 09:46

Simple question that\'s been bugging me for months.

Occasionally I\'ll dive into the vendors directory to fix a bug (especially for our internal libs). After migrating a

2条回答
  •  死守一世寂寞
    2021-01-30 10:28

    Choosing ? shows you the details:

    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
    

    You can also check the source code, the relevant part is here.

提交回复
热议问题