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 Git Basics Workflows Git-Flow

Im working in git bash and tried to install git flow and have no idea how to do it....

every time i watch the git flow video i am so lost.....dont understand how to install it

9 Answers

Todd MacIntyre
Todd MacIntyre
12,248 Points

Kristina, my version of git bash included gitflow with it - no additional downloads necessary. I am using git version 2.7.1.windows.1

If you have an older version of git bash, I might suggest downloading this newer version and giving it a try.

Windows 8

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kristina;

What OS are you using?

Ken

Anyone else have any advice on using git flow in git bash on windows?

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kristina;

Sorry I dropped this thread. Where are you getting lost/what are you trying that isn't working?

Ken

Barış Yazıcı
Barış Yazıcı
1,659 Points

In git bash when I write apt-get it responds as command not found. So I think Windows users got to install a suitable package manager.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

I would take a look here at gitflow instructions for Windows.

Chocolatey is a reasonable approximation to apt-get on Windows.

Ken

So I tried to follow instructions here at first:

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

using Git for Windows (previously MSysGit) section and i was doing fine until I hit this part,

C:\gitflow> contrib\msysgit-install.cmd

by the way you are supposed to run this in cmd . Anyways so I failed, read this thread and decided to try this whole Chocolatey extravaganza thing...

Anyways I managed to install choco, but it failed to deliver gitflow so I was forced to come back to instructions for Windows on github.com

Turns out my problem was that when I used Git BASH I have created gitflow folder in my home directory which was C:\Users\Juras and when switched to cmd to run this line

C:\gitflow> contrib\msysgit-install.cmd

that folder wasn't there, go figure.

I should have used

C:\Users\Juras\gitflow> contrib\msysgit-install.cmd

or rather even

C:\Users\Juras\gitflow> contrib\msysgit-install.cmd "C:\Program Files\Git"

since it couldn't find git installation on its own.

So I guess the moral is: don't just blindly copy instructions. The same concerns next one too:

instead of copying this to Git BASH:

$ ln -s /C/gitflow/git-flow git-flow

I had to use

$ ln -s /C/Users/Juras/gitflow/git-flow git-flow

ps. and you don't need chocolatey for this

Weigang Dai
Weigang Dai
9,689 Points

I already install the git flow on my mac, when I install again, it show me "git-flow-0.4.1 already installed, it is just not linked". so how can i link it?

and if I just run the "git flow init" as the video show: I get: /usr/local/bin/git-flow: line81: /usr/local/bin/gitflow-shFlags: No such file or directory What are all those meaning?