Mojave(10.x) => Monterey(12.x) 버전으로 OS 업그레이드 이후, git clone 명령어 실행시 발생하는 에러가 아래와 같이 나타났다.
# 실행코드
$ git clone git@github.com:sample/test.git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode cli 관련 이슈가 발생하는데, xcode-select 명령으로 xcode cli를 따로 설치해서 위의 문제를 해결할 수 있다.
$ xcode-select --install
위의 명령어 실행시, 윈도 화면에 설치를 진행하는 프로그램이 뜨는데, 설치를 진행해주면 된다. (캡처를 잃어버렸음;;)
설치는 그렇게 오래걸리지않는다.
$ git clone
fatal: You must specify a repository to clone.
usage: git clone [<options>] [--] <repo> [<dir>]
-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recurse-submodules[=<pathspec>]
initialize submodules in the clone
--recursive ... alias of --recurse-submodules
-j, --jobs <n> number of submodules cloned in parallel
--template <template-directory>
directory from which templates will be used
--reference <repo> reference repository
--reference-if-able <repo>
reference repository
--dissociate use --reference only while cloning
-o, --origin <name> use <name> instead of 'origin' to track upstream
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
path to git-upload-pack on the remote
--depth <depth> create a shallow clone of that depth
--shallow-since <time>
create a shallow clone since a specific time
--shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to follow them
--shallow-submodules any cloned submodules will be shallow
--separate-git-dir <gitdir>
separate git dir from working tree
-c, --config <key=value>
set config inside the new repository
--server-option <server-specific>
option to transmit
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
--filter <args> object filtering
--remote-submodules any cloned submodules will use their remote-tracking branch
--sparse initialize sparse-checkout file to include only files at root
참고자료
= https://www.hahwul.com/2019/11/18/how-to-fix-xcrun-error-after-macos-update/
'Etc' 카테고리의 다른 글
Etc - 쿠키(cookie)와 세션(session) (0) | 2022.03.13 |
---|---|
python 문법정리 (0) | 2021.10.20 |
Etc - Redis (0) | 2021.10.20 |
Etc - Mac OS Big Sur기준 로컬 Java프로젝트 구동시 지연현상 기록 (0) | 2021.10.08 |