Skip to content

Instantly share code, notes, and snippets.

@regtan
Created July 26, 2012 16:00
Show Gist options
  • Save regtan/3182917 to your computer and use it in GitHub Desktop.
Save regtan/3182917 to your computer and use it in GitHub Desktop.
mountain lionでターミナル立ち上げたらgit_compare_version:4: command not found: git

##これはなに? mountain lionインストールしてterminal立ち上げたらこんなエラーがでてゲンナリしたので対応方法まとめ ##これが発生した環境

  • mountain lion
  • oh-my-zsh

##原因はなに? 大きく分けて2つ

  • gitがそもそも消えてしまった
  • oh-my-zsh.zshがgitを解決できない

##原因の切り分け

  • homebrewなどでインストールしたgitは消えていないので【oh-my-zsh.zshがgitを解決できない】パターン
  • Xcode経由でgitをインストールした場合は【gitがそもそもきえてしまった】パターン

##対応する方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment