Skip to content

Instantly share code, notes, and snippets.

@rambolee
Forked from paydro/git-rsync.sh
Created November 23, 2016 04:07
Show Gist options
  • Save rambolee/50981749eedde57247714ee5164bed9a to your computer and use it in GitHub Desktop.
Save rambolee/50981749eedde57247714ee5164bed9a 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