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"

@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