Created
September 24, 2013 19:21
-
-
Save mwalters/6689904 to your computer and use it in GitHub Desktop.
Updates WordPress submodule tag (for upgrading WP core when it is a submodule)
This file contains 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
tag_version="$1" | |
cd wp && git fetch --tags && git checkout $tag_version && cd .. && git add wp && git commit -m "Updates WordPress to version: $tag_version" && git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
./wp-update.sh <tag>