Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Created June 27, 2012 19:35
Show Gist options
  • Save jeremyfelt/3006286 to your computer and use it in GitHub Desktop.
Save jeremyfelt/3006286 to your computer and use it in GitHub Desktop.
Rsync repo to repo
repo_to_repo() {
local DEVENV="/directory/to/where/both/repos/are/stored/"
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