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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

647 views 0 4
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