From: http://www.tuicool.com/articles/uIR7Zf

 

Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer . But if you are a web developer who used GIT in your previous OS, you may be prompted with the following error message:

" -bash: git: command not found

when you try executing the git command in your Terminal.

Git “Command not found” Error in Mountain Lion [Quickfix]

Don’t worry, here’s how you can fix this very quickly in just two steps.

Step 1

Launch the App Store then download " Xcode ".

Git “Command not found” Error in Mountain Lion [Quickfix]

Step 2

Install Xcode, run it and go to Xcode’s preference via shortcut key Command + ,

Go to the Downloads tab, look for " Command Line Tools ", and click Install .

Git “Command not found” Error in Mountain Lion [Quickfix]

You may be required to enter an Apple Developer ID. If you don’t have an account, just register for one.

Git “Command not found” Error in Mountain Lion [Quickfix]

Step 3

We kid. That’s it. Once the Command Line Tool is installed, quit and re-open Terminal, hit the git command and see if it has been successfully reinstated.

Git “Command not found” Error in Mountain Lion [Quickfix]


相关文章:

  • 2021-10-10
  • 2022-03-06
  • 2022-12-23
  • 2021-11-22
  • 2021-08-19
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-02-21
相关资源
相似解决方案