Skip to content

Instantly share code, notes, and snippets.

@mwalters
Created September 24, 2013 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwalters/6689904 to your computer and use it in GitHub Desktop.
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)
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
@mwalters
Copy link
Author

Usage:
./wp-update.sh <tag>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment