인텔리제이를 통해 공부중인 로컬 프로젝트를 GitHub와 연동하여 기록하고자 설치된 깃의 정보를 확인하는 과정에서 아래와 같은 에러가 발생했다.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Mac OS 업데이트 후 간헐적으로 git을 비롯한 각종 개발자 도구들이 xcrun error가 발생한다고 한다. 해당 문제는 개발자 도구의 문제가 아닌 CommandLineTools 식별 문제로 CommandLineTools를 설치해주면 간단하게 해결할 수 있다.
xcode-select --install
설치 후 정상적으로 작동 된다.
git usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] [--super-prefix=<path>] [--config-env=<name>=<envvar>] <command> [<args>] These are common Git commands used in various situations:
똑똑한 자식..