관리 메뉴

너와 나의 스토리

git flow error 문제 해결 본문

개발

git flow error 문제 해결

노는게제일좋아! 2022. 2. 7. 15:36
반응형

에러 

  • git flow로 새로운 브랜치 생성하려고 했는데 다음과 같은 에러가 발생했다.
  • git flow init을 시도해도 같은 에러가 발생함.
$ git flow feature start test-123
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 158: _flags_fatal: command not found
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 1024: [: -ne: unary operator expected
flags:WARN /usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 740: /private/var/folders/2n/h7k861yx7q5b73vmch9tls080000gn/T/AppTranslocation/B70C53A6-E2FA-4C13-8CE9-777DCC351824/d/Sourcetree.app/Contents/Resources/bin/getopt: No such file or directory

$ git flow init
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 158: _flags_fatal: command not found
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments
/usr/local/Cellar/git-flow-avh/1.12.3/libexec/bin/gitflow-shFlags: line 273: [: too many arguments

 

 

해결 방법

  • source tree path를 삭제한다.
  • $ rm ~/.gitflow_export
  • 해결!

 

반응형
Comments