当前位置:   article > 正文

Git “Command Not Found” Error In Mountain Lion_群晖 git: command not found

群晖 git: command not found



 按 cmd+,  出来设置选项,选择Downloads标签,安装一下command line tools就可以解决。





-bash: git: command not found

when you try executing the git command in your Terminal.

git not found

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".

install xcode

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.

install command line tools

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

login with apple id

Step 3

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

test git in terminal


本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/758907
推荐阅读
相关标签
  

闽ICP备14008679号