Skip to content

Instantly share code, notes, and snippets.

@huricool
Forked from paydro/git-rsync.sh
Created February 29, 2016 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huricool/eba23d997b56e2b92a92 to your computer and use it in GitHub Desktop.
Save huricool/eba23d997b56e2b92a92 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