반응형
gitflow 설치 후 init rep하려니 아래와 같은 에러가 나왔다.
Error : /Applications/Sourcetree.app/Contents/Resources/bin/getopt: No such file or directory flags:FATAL unable to parse provided options with getopt.
이유를 찾아보니 sourceTree path와 뭔가 꼬인 것 같다.
해결법
$ cat ~/.gitflow_export
=> export FLAGS_GETOPT_CMD=/Applications/Sourcetree.app/Contents/Re~ 이런게 쭉 보인다.
$ nano ~/.gitflow_export
=> 파일 편집하러 가서 위에서 본 저 줄을 모두 삭제한다.
$ Ctrl + X 후 y 또는 enter해서 저장하고 나오기
=> 다시 webstorm을 열고 init repo를 하면 된다.
여기서 또 에러가 났다.
fatal: branch 'develop' does not exist
가 나는 경우 아래 포스팅 참고!!
https://blckchainetc.tistory.com/374
[gitflow Error] 'fatal: branch 'develop' does not exist'
gitflow설치 후, webstorm 오른 아래쪽에 no-git 이었나 요걸 클릭해서 init repo(gitflow 시작) 클릭하니 아래의 에러가 나왔다. Error 'fatal: branch 'develop' does not exist 해결법 $ git checkout develop..
blckchainetc.tistory.com
reference : https://github.com/fork-dev/Tracker/issues/418
반응형