Skip to content

Instantly share code, notes, and snippets.

@Keshava11
Created September 9, 2021 16:18
Show Gist options
  • Save Keshava11/645c5d456854a1c7abbc2474f5ada639 to your computer and use it in GitHub Desktop.
Save Keshava11/645c5d456854a1c7abbc2474f5ada639 to your computer and use it in GitHub Desktop.
Add rsync (Git Bash) to WIndows 10

Set up the rsync (Git Bash) in the Windows 10

4 packages needs to be downloaded (You can change the version for the 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

Since these packages are compressed using zstd compression algorithim, a tool would be required to decompress the packages which is fortunately provided by the Facebook and can be found under the zstd repo's release section.

Get the windows release at facebook/zstd/windows.

Decompress it and use the zstd64_gcc610.exe to decompress all the above packages with .zst extensions.

ZSTD can also be used as a 7zip plugin, but not easier than using zstd64_gcc610.exe .

Command to decompress above 4 packages sequentially :

$ zstd64_gcc610.exe -d liblz4-1.9.3-1-x86_64.pkg.tar.zst
$ ....

Now post decompression, all the folders will have usr/ directories. Copy content of each of the usr/ directory, basically files with extension .exe and .dll to the C:\ProgramFiles\Git\usr\bin directory.

Relaunch Git Bash and we are good to go.

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