Skip to content

Instantly share code, notes, and snippets.

@slickplaid
Last active February 18, 2019 17:41
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 slickplaid/7927443ebf10128f479b41f5f84007bc to your computer and use it in GitHub Desktop.
Save slickplaid/7927443ebf10128f479b41f5f84007bc to your computer and use it in GitHub Desktop.
Install Rsync on Windows's Git Bash

Add Rsync to Git Bash for Windows

Repository: http://repo.msys2.org/msys/x86_64/
Download (version 3.1.3-1): http://repo.msys2.org/msys/x86_64/rsync-3.1.3-1-x86_64.pkg.tar.xz

Script

Note: You'll need to be admin to copy this file to the Program Files directory of Gitbash

set -x

RSYNC_BIN="http://repo.msys2.org/msys/x86_64/rsync-3.1.3-1-x86_64.pkg.tar.xz"
RSYNC_PATH="usr/bin/rsync.exe"
GITBASH_BIN="/c/Program\ Files/Git/usr/bin/"

mkdir rsync
(cd rsync && curl $RSYNC_BIN | tar xJ - $RSYNC_PATH && cp $RSYNC_PATH $OUTDIR)
rm -vf rsync

Credits

Copied from here for posterity: https://blog.tiger-workshop.com/add-rsync-to-git-bash-for-windows/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment