I need to move the Magento core files which were installed in app/code/Magento by accident to the vendor folder so they can be updated with composer. Any advice on how to do that? Could not find much on Google.
I aleady tried deleting the content of the vendor folder and running
composer install or
composer update. That does not install what I need, only the current vendor state will be restored.