Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Initialise repository for Git Flow failed in sourceTree 2.1.2.4

I got below error when I tried to initialize repository for Git Flow. I did switch Git by using embedded Git and System Git but still got the same error. Please advise.

sh.exe C:\Users\userName\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow init -d
0 [main] sh 11680 fork: child -1 - CreateProcessW failed for 'C:\Users\userName\AppData\Local\Programs\Git\usr\bin\sh.exe', errno 13
C:\Users\userName\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow: fork: Permission denied
C:\Users\userName\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow: line 73: /gitflow-common: No such file or directory
Completed with errors, see above.

Thank you,

2 answers

1 accepted

0 votes
Answer accepted
Mike Corsaro Atlassian Team Jun 06, 2017

Hello! I suspect that something is causing an issue with your PATH (either a weird git install, or a conflicting app). To confirm, open a git terminal for the repo (you can do this via SourceTree by clicking the 'Terminal' button after opening the repo) and try typing:

git-flow init -d

Can you let me know if you get an error doing that too? Thanks!

 

I did try "Terminal" and got the similar error as above.

$ git-flow init -d
0 [main] sh 6640 fork: child -1 - CreateProcessW failed for 'C:\Users\userName\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\sh.exe', errno 13
/usr/bin/git-flow: fork: Permission denied
/usr/bin/git-flow: line 115: /gitflow-shFlags: No such file or directory

Mike Corsaro Atlassian Team Jun 07, 2017

Unfortunately, this will be a difficult problem to solve. It appears that something else on your PC may have messed with your PATH variable, or your git install may have not been performed correctly. You can try some of the methods in this thread: https://groups.google.com/forum/#!topic/git-for-windows/AHeS_8PXz2w, or try and uninstall and reinstall git.

The issue had been fixed. It was caused by Dell Data Protection settings. It's working now after unblocked below files.

C:\Users\userName\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\sh.exe
C:\Users\userName\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\bash.exe
C:\Users\userName\AppData\Local\Atlassian\SourceTree\git_local\usr\bin\mintty.exe

Thank you,

My company is evaluating Bitbucket server and SourceTree. However, I got above error when I tried to using Git flow from SourceTree. I am very appreciated if somebody can help.

Thank you,

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in DevOps

Step up your DevOps game webinar Q&A series - Questions answered!

  On October 21st, 2020 we hosted a webinar titled,   Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...

97 views 0 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you