Created
June 27, 2012 19:35
-
-
Save jeremyfelt/3006286 to your computer and use it in GitHub Desktop.
Rsync repo to repo
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
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