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.
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
".
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
.
You may be required to enter an Apple Developer ID. If you don’t have an account, just register for one.
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.
相关推荐
Fatal error: Class ‘COM’ not found in XXXXXXXXX 没发现 COM 类,php代码主要是调用一些系统的信息,初想应该是php没配置好,在stackoverflow找到答案,是讨论xampp的,要延伸开来,我加了几个要点: ★ php 根...
使用TortouieGit拉取代码的时候报git did not exit cleanly (exit code 1)的解决步骤
GnuWin32提供工具解析makefile,解决GitBash运行make命令,提示bash: make: command not found的问题
常用git命令,管理代码仓库的一些常用命令。
git客户端安装包:Git-2.7.2-64-bit_setup.1457942968.exe 可视化工具:TortoiseGit-2.6.0.0-64bit
git command1
Git-2.26.0-rc1-32-bit Git-2.26.0-rc1-64-bit TortoiseGit-2.10.0.0-64bit git组件与客户端集成
git-for-win-master Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。
-bash: git: command not found [lidengyin@ldy ~]$ centos通过yum安装git [lidengyin@ldy ~]$ sudo yum install -y git centos通过yum卸载git yum remove git 初次运行配置 安装完git之后,第一件事就是设置用户...
TortoiseGit-2.5.0.0-64bit.msi,Git-2.15.0-64-bit.exe
*NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments. Git GUI As Windows users commonly expect graphical user interfaces, Git...
react-native在mac上执行gradlew命令报错 ./gradlew:command not found 那么这个问题就是当前项目的./gradlew出问题了 1.1,首先我们要保证环境是对的。也就是说这个工程能跑。 1.2,然后需要在我们project目录下...
Git-CommandLine
因为git下载失败导致openwrt编译失败的解决方案!
* In recent versions of Git, per-worktree refs are exposed in refs/worktrees/<wtname>/ hierarchy, which means that worktree names must be a valid refname component. The code now sanitizes the names...
远程仓库工作流程
git-ps1 一个简单的命令行提示符增强器,用于显示当前git repo(ps1)的状态。 如果您的git信息库的运行状况良好,则git-ps1只会向您显示当前分支。 如果运行状况不好,git-ps1也会显示 :thumbs_down: 在分支旁边...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 看了下Git命令能否正常使用 命令行git –help ...
Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path. )
解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....