简体   繁体   English

git不起作用。 我得到“'git'未被识别为……”

[英]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.

相关问题 拉不可能,因为你有未合并的文件,git stash不起作用。不想承诺 - Pull is not possible because you have unmerged files, git stash doesn't work. Don't want to commit 无法让Homebrew和git以我希望他们的方式工作 - Can't get Homebrew and git to work the way I want them to git push heroku master似乎不起作用 - git push heroku master doesn't seem to work “ will_paginate”的翻译不起作用。 我究竟做错了什么? - Translation of “will_paginate” doesn't work. What am I doing wrong? Ruby代码不起作用。 怎么会? 我包括Enumerable,实现了每个但拒绝并不像我期望的那样 - Ruby code that doesn't work. How comes? I included Enumerable, implemented each but reject doesn't behave as I expect Rails 3 - dependent =&gt;:delete_all不起作用。 为什么? - Rails 3 - dependent => :delete_all doesn't work. Why? Rails-新路径不起作用。 为什么? - Rails - new path doesn't work. Why? 春天不起作用。 [未初始化的常量Spring :: SID :: DL] - Spring doesn't work. [ uninitialized constant Spring::SID::DL ] Ruby on Rails:创建无效。 数据未插入数据库 - Ruby on Rails: Create doesn't work. Data doesn't insert to database 类ProfilePresenter &lt;ActionView :: Base | url_for不起作用。 为什么? - class ProfilePresenter < ActionView::Base | url_for doesn't work. why?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM