Skip to content

Instantly share code, notes, and snippets.

@dgleba
Forked from hisplan/add-rsync-to-git-bash.md
Last active August 23, 2021 08:25
Show Gist options
  • Save dgleba/3f6c8803487579a3c42af6746f93b9cb to your computer and use it in GitHub Desktop.
Save dgleba/3f6c8803487579a3c42af6746f93b9cb to your computer and use it in GitHub Desktop.
Add rsync to git bash for windows

How to Add rsync to Git Bash for Windows 10

Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz

Extract it and move rsync.exe to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin.

code

open windows cmd prompt.. maybe an admin one..

cd %TEMP%
curl http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz -o rsync.txz
tar -xvf rsync.txz
cp usr/bin/rsync.exe "%ProgramFiles%\Git\usr\bin"

@inspector71
Copy link

inspector71 commented Aug 22, 2021

Wow, that is an incredible amount of work! Well done.

So rsync is available with PortableGit but not Git for Windows ?

Surely an 'extras' package that supports some of these needs could be a Git for Windows option. If only the authors of various Git distributions could combine their efforts! We could have the choice of:

Git for Windows (installer)
Git for Windows Extras (installer)
Git for Windows (portable)
Git for Windows Extras (portable)

Would not even necessarily need an install-as-a-service facility, as there's more than a couple of ways to install a program as a service on Windows.

Several, and I mean several, software projects do the above style of distribution. It's not unusual.

I did this and cygrunsrv worked. It makes an rsync deamon service that works.

...

This about:

download.. from.. https://github.com/git-for-windows/git/releases/tag/v2.32.0.windows.2
PortableGit-2.32.0.2-64-bit.7z.exe

...
=================================================

@dgleba
Copy link
Author

dgleba commented Aug 22, 2021

I installed portableGit, added pacman and then used pacman to install rsync. By adding pacman, I could install more than just rsync.

I think the same thing could be done with Git for Windows. I just prefer to use software that doesn't need admin permissions if that flavor is available.

@inspector71
Copy link

I installed portableGit, added pacman and then used pacman to install rsync. By adding pacman, I could install more than just rsync.

I think the same thing could be done with Git for Windows. I just prefer to use software that doesn't need admin permissions if that flavor is available.

Thanks for clarifying. Impressive that you have the patience for this effort 🤔

Uninstalled Git for Windows?

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