Props to @pento mentioning this method in comment.
cd /srv/www/wp-cli
git checkout -- .
git pull origin master
composer update
Props to @pento mentioning this method in comment.
cd /srv/www/wp-cli
git checkout -- .
git pull origin master
composer update