How to Upgrade Wordpress git submodule update --init cd wordpress git fetch --all --tags --prune. Note the most recent tag displayed in the output. git checkout the tag, e.g. git checkout 5.2.2 cd .. git add wordpress git commit -m "Updated WordPress to x.x.x"