Skip to content

Instantly share code, notes, and snippets.

@ammist
Forked from doolin/svn_overwrite.sh
Created June 29, 2011 08:23
Show Gist options
  • Save ammist/1053419 to your computer and use it in GitHub Desktop.
Save ammist/1053419 to your computer and use it in GitHub Desktop.
[WP] [SVN] - Getting WordPress out of SVN
#!/usr/bin/sh
# This script will overwrite an existing
# WordPress installation with the current
# head of trunk. Once it has been reverted,
# you may need to update the database, and
# WP will prompt you for that automatically.
# This is untested with these options!
# The script commands work from the command
# line; make sure and do a practice test
# before attempting to run this as a script.
export repo="http://core.svn.wordpress.org/trunk"
# export target="~/public_html"
export target="~/public_html/wp"
cd ~/public_html/wp
svn checkout --force $repo $target
svn revert -R $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment