Skip to content

Instantly share code, notes, and snippets.

@tddewey
Created January 29, 2013 03:46
Show Gist options
  • Save tddewey/4661641 to your computer and use it in GitHub Desktop.
Save tddewey/4661641 to your computer and use it in GitHub Desktop.
Rsync -- modify DEVENV for your own setup.
vipsync() {
local DEVENV="/Users/tddewey/Sites/vip/wp-content/themes/vip/"
rsync -rv --delete --exclude='.svn' $DEVENV$1/* $DEVENV$2
cd $DEVENV$2
svn status | grep '^!' | awk '{print $2}' | xargs svn rm
svn status | grep '^?' | awk '{print $2}' | xargs svn add
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment