Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マシンのgitに問題があり、誤って/ usr / bin/gitをシステムから削除してしまいました。
私のgitはXCodeコマンドラインツールを介してインストールされましたが、再インストールする方法が見つかりません。
gitはアンインストールされず、gitファイルは削除されました。
XCodeまたは他の場所からコマンドラインツールを再インストールする方法はありますか?またはどこかで元のgitファイルを取得して/usr/ binに再度追加できますか?
ありがとう
sudo cp /Applications/Xcode.app/Contents/Developer/usr/bin/git /usr/bin/git
/usr/bin/gitなぜそのファイルへのシンボリックリンクではないのかわかりませんが、私のシステムでは、それは別の(同一の)コピーです。
/usr/bin/git