Last active
August 29, 2015 13:56
-
-
Save martijngastkemper/9130726 to your computer and use it in GitHub Desktop.
Update WordPress submodule to new version (tag).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd folder-containing-wordpress | |
git fetch --tags | |
git checkout x.y.x | |
cd ../ | |
git add folder-containing-wordpress | |
git commit -m "Upgrade WordPress to x.y.z" | |
git push | |
# To fetch a submodule when you changed the version locally, git pull isn't enough | |
cd folder-containing-wordpress | |
git fetch --tags | |
cd .. | |
git submodule update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment