Skip to content

Instantly share code, notes, and snippets.

@paydro
Created February 15, 2011 02:16
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save paydro/826988 to your computer and use it in GitHub Desktop.
Save paydro/826988 to your computer and use it in GitHub Desktop.
rsync changed files in a git repo to a remote server
git status -s | awk '{print $2}' | sed 's/\(.*\)/rsync -cav \1 user@remote.server.com:~\/\1/' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment