配置Git [英] Configuring Git

查看:74
本文介绍了配置Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前从未使用Git,我试图将它与 Composer 结合使用以下载Yii 2,并且收到错误消息:



git not found,check it's installed and in your path。



I它安装在 C:\程序文件(x86) - 从这里下载 http://git-scm.com/download/win



我使用XAMPP,所以我的webroot文件夹是 - C:\xampp\htdocs\



我只需要移动我的Git文件夹?如果是的话在哪里?或者我需要做别的事情?



道歉,如果这很简单,尽管我有新的领土。 > Jonnny

解决方案

您无法执行它,因为Git可执行文件的路径不在您的PATH环境变量中。默认情况下,在Windows上安装Git会安装 Git Shell 应用程序,您需要打开它才能执行Git命令。

你想从标准的Windows命令提示符执行Git命令,你可以将Git目录的路径添加到PATH环境变量,或者重新安装Git并在安装过程中选择从Windows命令提示符运行Git 选项。

Never used Git before, I'm trying to use it in conjunction with Composer to download Yii 2 and I'm getting the error:

git not found, check it's installed and in your path.

I have it installed on C:\program Files (x86) - Downloaded from here http://git-scm.com/download/win

I am using XAMPP, so my webroot folder is - C:\xampp\htdocs\

Do I just need to move my Git folder? If so where to? Or do I need to do something else?

Apologies if this is simple, new territory for me though.

Jonnny

解决方案

You aren't able to execute it because the path to the Git executable is not in your PATH environment variable. The installation of Git on Windows by default installs the Git Shell application, which you'll need to open to execute Git commands from.

If you'd like to execute Git commands from the standard Windows Command Prompt, you can either add the path to the Git directory to the PATH environment variable, or reinstall Git and select the option Run Git from the Windows Command Prompt during the installation.

这篇关于配置Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆