[英]git doesn't work. I get “'git' is not recognized as …”
I am trying to run this line out of http://docs.heroku.com/quickstart 我正在尝试从http://docs.heroku.com/quickstart中运行此行
git init
But I get 但是我明白了
How do I get around this problem? 我该如何解决这个问题?
You need to install git on windows first, and then use the GIT bash shell. 您需要先在Windows上安装git,然后再使用GIT bash shell。 Here is the site for GIT on windows http://code.google.com/p/msysgit/
这是Windows http://code.google.com/p/msysgit/上的GIT网站。
Just install that, open GIT Bash, navigate back to that directory and run that command again. 只需安装它,打开GIT Bash,导航回到该目录并再次运行该命令。
Make sure you did all the prerequisites on that page. 确保已完成该页面上的所有先决条件。
Did you install git? 您安装了git吗? http://code.google.com/p/msysgit/
http://code.google.com/p/msysgit/
If so, make sure the location of the executable is in your PATH variable. 如果是这样,请确保可执行文件的位置在您的PATH变量中。
This site may help too: http://kylecordes.com/2008/git-windows-go 该站点也可能会有所帮助: http : //kylecordes.com/2008/git-windows-go
i will suggest you to use tortoisegit , a git for window. 我建议您使用tortoisegit ,这是git的窗口。 But yet , develop rails in window is suffering , why don't you just dual boot your computer to linux and window ?
但是,在window中开发rails却很痛苦,为什么不将计算机双重引导到linux和window?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.