How do I install git-subtree with Cygwin in Windows 7?

cygwin, git, git-subtree, windows

Solution

`git-subtree` is not part of a package. However, like `gitk` you can manually install it

wget rawgit.com/git/git/master/contrib/subtree/git-subtree.sh
install git-subtree.sh /bin/git-subtree

Problem

I'm struggling to install git-subtree with Cygwin and there hasn't been any good tutorials online focused on building from source in Windows. Have you ever had this issue, and what is the best strategy to tackle it?

Original source