git_wordpress_updated is a set of bash scripts intended to make it as easy as possible to get your WordPress installation updated using Git. These scripts are intended to make maintaining WordPress as un-technical as possible. When a new version of WordPress is released simply download it, run one script, visit one URL, then carry on with your day.
At the moment, this script is best suited for use with new WordPress installations, though using existing installations is definitely doable. I just haven't gotten around to writing the appropriate instructions yet.
git clone git://github.com/metavida/git_wordpress_updated.git cd git_wordpress_updated
If you want to enable WordPress DB backups on update, copy
config.txt and edit it appropriately.
You'll end up with the latest version of WordPress in the
git_wordpress_updated/wordpress_live directory. You can point your web server at this directory to serve up your blog.
Tweaking your blog
Tweak the code in the wordpress_live directory to your heart's content (updating the config file, installing plugins and themes, tweaking other code as you see fit). As you make changes it would do you good to run the
git commit -a command now and then.
When a new version of WordPress is released the power of Git really shines. Download the latest tar.gz from WordPress and place it in the
git_wordpress_updated/wordpress_tars directory (Note, it's important that the tar.gz in named in the wordpress-x.x.x.tar.gz format).
That's it. Assuming there were no conflicts, the code in the
git_wordpress_updated/wordpress_live directory is now running the latest code from WordPress, including your modifications.
If conflicts do occur, they'll have to be resolved in the wordpress_tars/working_code directory on the live branch.
Resources & Useful links
Copyright (c) 2009 Marcos Wright Kuhns
This code is free to use under the terms of the MIT license.