Mac os를 업데이트하고 git을 사용하려고 했더니 갑자기 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 라는 xcrun 이라는 에러가 떴다. xcode-select --install 이라고 터미널에 입력해주면 새로운 업데이트가 진행되고 업데이트가 완료되면 해결되었다.