-
-
Save ammist/1053419 to your computer and use it in GitHub Desktop.
[WP] [SVN] - Getting WordPress out of SVN
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
#!/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