composer舍弃本地修改 默认选中

Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git status --porcelain --untracked-files=no
    The package has modified files:
    M src/baseScript/sendEmail.sh
    Discard changes [y,n,v,d,s,?]? y
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git reset --hard
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git remote -v
 Checking out 96972a6a49737d8fb1430c7fffd0bad9ff6f66e5
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git remote -v
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): (git remote set-url composer 'http://gitlab.diangoumall.com:8881/business/dg-rpc.git' && git rev-parse --quiet --verify '96972a6a49737d8fb1430c7fffd0bad9ff6f66e5^{commit}' || (git fetch composer && git fetch --tags composer)) && git remote set-url composer 'http://gitlab.diangoumall.com:8881/business/dg-rpc.git'
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git branch -r
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git checkout 'development' --
Executing command (/dgmall/phproot/app-api/vendor/dg/rpc): git reset --hard '96972a6a49737d8fb1430c7fffd0bad9ff6f66e5' --

COMPOSER_DISCARD_CHANGES=true composer update -vvv --no-dev --no-interaction

https://stackoverflow.com/questions/25828102/composer-discard-changes-what-do-the-y-n-v-d-s-do

posted @ 2021-04-12 11:07  brady-wang  阅读(166)  评论(0编辑  收藏  举报