Follow me on GitHub

Scale WordPress project with Docker, Composer and GitHub Actions
Setup WordPress project with composer

When you are using composer to install WordPress you get access to fast update to new version of WordPress and you can keep minimal of your code into your git system, its very useful this way and its make WordPress much faster to work with so you don't need to think about upgrade of your WordPress Core you can just use composer upgrade for that.