Git Flow on Windows ver. 1.7.0.32509 not working

I have a repository hosted on Bitbucket which I am attempting to use through SourceTree. However, whenever I try to run the Git Flow command, I recieve a list of error messages during the process that looks like this:

sh.exe C:\Users\usewr\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow init -d
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 56: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/gitflow-common: line 161: git: command not found
Using default branch names.
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/gitflow-common: line 161: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/gitflow-common: line 73: git: command not found
No branches exist yet. Base branches must be created now.
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 93: git: command not found
Branch name for production releases: [master] 
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 131: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/gitflow-common: line 166: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/gitflow-common: line 73: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 146: git: command not found
Branch name for "next release" development: [develop] 
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 188: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 197: git: command not found
C:/Users/user/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow/git-flow-init: line 198: git: command not found

I have checked the folder specified in the error messages, and there are files in the folder which correspond to the names of the commands.

What is wrong with my installation?gitflow.png

1 answer

1 accepted

I had the exact same thing. I went to tools>options>git then switched from system git to embedded git.

I'm not sure if it's the same source of problem for you though. 

That worked perfectly thanks, possibly something do with a difference between Windows and Linux or something.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

429 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you