Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Dietmar Krause
Dietmar Krause
6,229 Points

Installing git flow in Windows

I have made the deep dive "Git Basics" and in the final episode git flow is shown. I have installed Git for Windows as shown in one of the first episodes and everything works fine. But installing git flow for git for windows isn't easy, there seems to be no simple way. First of all "Git for Windows" isn't the same as msysGit. Git for Windows is only that: git, MsysGit seems to be the environment for compiling Git yourself and seems to be necessary for installing git flow on a windows system as far as i know. I would like to have a video, perhaps a quick tip or something like that, which shows how to install git flow on a Windows computer to follow the last episode. Any hints? Can someone show me how to install git flow on Windows, starting with "git for windows" as shown in the first epsode? Dietmar from germany

5 Answers

Hi Dietmar,

Step by step instructions for installing on windows are included in the gitflow github repository.

https://github.com/nvie/gitflow/wiki/Windows

Scott

Dietmar Krause
Dietmar Krause
6,229 Points

Thank you Scott. The problem can be, that if you followed the video, you don't have Cygwin and you don't have Msysgit but only the plain git.. It took a long time until i noticed, that i had installed the plain Git version, following the video instatallation process. Not the compiler-stuff, Msysgit. They are not the same as i at first thought. So, as i understand it, one has to install msysgit in addition to "the plain git" from the video and afterwards follow the instruction you mentioned. Is this correct? Dietmar from germany

No.

msysGit is the development environment to compile Git for Windows. It is complete, in the sense that you just need to install msysGit, and then you can build Git. Without installing any 3rd-party software. msysGit is not Git for Windows; that is an installer which installs Git -- and only Git.

If you already have git installed, you should install Cygwin and do

$ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

This discussion should provide more clarity on the distinction between Msysgit and git.

https://stackoverflow.com/questions/3672272/msysgit-vs-git-for-windows

Scott

Dietmar Krause
Dietmar Krause
6,229 Points

That ist exactly what i tried to say. "Without installing any 3rd-party software. msysGit is not Git for Windows; that is an installer which installs Git -- and only Git.

It is easy to see the difference: the installers for Git have the prefix Git-, the msysGit installers have the prefix msysGit-. Another telltale is that the msysGit installers come in two flavors: fullinstall and netinstall. Further, msysGit does not install to C:\Program Files by default. But msysGit comes with gcc, the GNU C Compiler." Git for Windows ist the Git Version you installed, if you followed the video instructions. NOT Msysgit. But you need Msysgit for Git flow, so one has to install it in addition.

Brad Woods
Brad Woods
13,772 Points

Following the instructions at https://github.com/nvie/gitflow/wiki/Windows I have installed Cygwin and I run - $ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

Then I get the following output -

gitflow no-make installer

Installing git-flow to /usr/local/bin Cloning repo from GitHub to gitflow bash: line 57: git: command not found Updating submodules bash: line 64: cd: gitflow: No such file or directory bash: line 65: git: command not found bash: line 66: git: command not found install: cannot stat gitflow/git-flow': No such file or directory install: cannot statgitflow/git-flow-init': No such file or directory install: cannot stat gitflow/git-flow-feature': No such file or directory install: cannot statgitflow/git-flow-hotfix': No such file or directory install: cannot stat gitflow/git-flow-release': No such file or directory install: cannot statgitflow/git-flow-support': No such file or directory install: cannot stat gitflow/git-flow-version': No such file or directory install: cannot statgitflow/gitflow-common': No such file or directory install: cannot stat `gitflow/gitflow-shFlags': No such file or directory

Has anyone seen this before? Know how to fix?