Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitflow not initializing #418

Closed
rubinchyk opened this issue Oct 1, 2018 · 16 comments
Closed

Gitflow not initializing #418

rubinchyk opened this issue Oct 1, 2018 · 16 comments

Comments

@rubinchyk
Copy link

Can't init GitFlow for repository, has an error:

/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 158: _flags_fatal: command not found
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 273: [: too many arguments
/Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 1022: [: -ne: unary operator expected
flags:WARN /Applications/Fork.app/Contents/Resources/gitflow-avh/gitflow-shFlags: line 739: /Applications/Sourcetree.app/Contents/Resources/bin/getopt: No such file or directory
flags:FATAL unable to parse provided options with getopt.
@DanPristupov
Copy link
Contributor

You removed SourceTree and it broke your environment.

@DanPristupov
Copy link
Contributor

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there:
~/.gitflow_export

@rubinchyk
Copy link
Author

Thank you! Working.

@DanPristupov
Copy link
Contributor

Not sure how to behave in such case... I'll try to find a workaround to override those settings.

@dill0wn
Copy link

dill0wn commented Dec 20, 2018

Thank you! I was having the same issue. It only appeared after SourceTree was no longer present :)

I couldn't find anything in the usual places that would reference /Applications/SourceTree.app/Contents

Thanks for the solution!

p.s. It was rather difficult to find this github page. Is there a link anywhere on git-fork.com?

@dill0wn
Copy link

dill0wn commented Dec 20, 2018

p.p.s Keep up the good work. Fork is my favorite git gui 💯

@DanPristupov
Copy link
Contributor

@dill0wn no, there's no such link. But it's a good idea. It would be great to have a 'troubleshooting' page somewhere.

@tomwalsh-home
Copy link

@DanPristupov Awesome! worked for me! Pesky sourcetree!

@dlpigpen
Copy link

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there:
~/.gitflow_export

Thank you it works for me.

@pridemusvaire
Copy link

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560
Remove the source tree path from there:
~/.gitflow_export

Thank you it works for me.

Works thanks.

@Fi5t
Copy link

Fi5t commented Jan 6, 2020

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there:
~/.gitflow_export

It's pure magic! Thank you a lot.

@emoonadev
Copy link

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there:
~/.gitflow_export

Can we have a detailed procedure to resolve this problem, I do not understand what I should do, what to delete and where?

@JonasPardon
Copy link

@emoonadev

  1. Go to your terminal and type:
    cat ~/.gitflow_export
  2. You should see the line export FLAGS_GETOPT_CMD=/Applications/Sourcetree.app/Contents/Resources/bin/getopt% or something similar there.
  3. If you do see that line, type nano ~/.gitflow_export and remove that line from the file. Press Ctrl + X to quit the editor. You might have to confirm: y and ENTER

@ulkoart
Copy link

ulkoart commented Jul 22, 2021

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there:
~/.gitflow_export

Thanks!

@iamleetvin
Copy link

More details in that tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remove the source tree path from there: ~/.gitflow_export

Useful answer!!!thank you!!!

@ErisonSales
Copy link

Mais detalhes nesse tweet: https://twitter.com/Alastor8472/status/1045577731319234560

Remova o caminho da árvore de origem de lá: ~/.gitflow_export

Funcionando, obrigado!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests