Skip to content

Instantly share code, notes, and snippets.

@hisplan
Created February 21, 2018 09:02
Show Gist options
  • Save hisplan/ee54e48f17b92c6609ac16f83073dde6 to your computer and use it in GitHub Desktop.
Save hisplan/ee54e48f17b92c6609ac16f83073dde6 to your computer and use it in GitHub Desktop.
Add rsync to git bash for windows
@ctrongminh
Copy link

Then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them (extract 4 libs to folder "usr"). Then copy folder "usr" to "C:\Program Files\Git".
And it works

The "(extract 4 libs to folder "usr")" part confused me. Each of these packages contains their own /usr/ directory tree (in particular /usr/lib, /usr/bin). Just extract all these /usr/* to a new "usr" folder and then copy it to "C:\Program Files\Git". It works, thank you!

Thanks @timmy-ly,
I edited the it a bit. Copy four libs to the same folder, and extract them all, then copy the "usr" folder to "C:\Program Files\Git".

@rolfschumacher
Copy link

rolfschumacher commented May 31, 2021

Where can I find the public key for checking downloads from http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/ ??

I found the fingerprint 81B3DB3F32C8A69E80C12875124374AB5E5E584A at the account of Nick Østergaard on lauchpad.net - but it seems to be expired.

@rkhyd
Copy link

rkhyd commented Jul 22, 2021

The link has expired.

@oakgary
Copy link

oakgary commented Jul 22, 2021

The link has expired.

A quick google search brings up these sites:

The process should be the same. Download, extract and put the .exe into a directory that is part of your PATH.
Please note that I did not verify above downloads. Use them at your own risk.

@terwer
Copy link

terwer commented Apr 14, 2022

Link no longer works, just search for "rsync" in the official msys2 repo instead: http://repo.msys2.org/msys/x86_64/
The newest version requires two additional packages to make it work: libxxhash and liblz4.
The packages are now compressed with zstd, unpack them inside git bash with zstd -d <package> or use 7zip with ZStandard support: https://github.com/mcmilk/7-Zip-zstd/releases

Thank you @fotcorn for your note, For my case I also need to download the http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst. So total of four packages

  1. rsync: http://repo.msys2.org/msys/x86_64/rsync-3.2.3-1-x86_64.pkg.tar.zst
  2. libxxhash: http://repo.msys2.org/msys/x86_64/libxxhash-0.8.0-1-x86_64.pkg.tar.zst
  3. liblzr: http://repo.msys2.org/msys/x86_64/liblz4-1.9.3-1-x86_64.pkg.tar.zst
  4. libzstd: http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst

Copy four libs to the same folder, then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them. After that, copy folder "usr" to "C:\Program Files\Git". And it works

thanks for your good works,it worked!

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