11

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?

approxiblue
  • 6,982
  • 16
  • 51
  • 59
dot_zero
  • 1,030
  • 3
  • 12
  • 26

1 Answers1

22

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
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Zombo
  • 1
  • 62
  • 391
  • 407
  • It is strange that *git-subtree* is just a script file, and cygwin just won't include it by default. Any idea? – David S. Dec 20 '14 at 15:05
  • I installed it the mentioned way, but how does I fix git subtree when `peel_committish` is not found? ```/usr/bin/git-subtree: Zeile 568: peel_committish: Command not found. fatal: 'subtree' appears to be a git command, but we were not able to execute it. Maybe git-subtree is broken?``` – dArignac Dec 21 '15 at 07:38
  • @SarahManning Thank you. Solved it by updating my cygwin though. – dArignac Dec 21 '15 at 12:50
  • @davidshen84: It's because `contrib` is generally not included in packages. – tricasse Sep 29 '16 at 09:52
  • Failed for me on Windows 10 – Dr. Max Völkel May 12 '17 at 15:05