简体   繁体   中英

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

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. Here is the site for GIT on windows http://code.google.com/p/msysgit/

Just install that, open GIT Bash, navigate back to that directory and run that command again.

Make sure you did all the prerequisites on that page.

Did you install git? http://code.google.com/p/msysgit/

If so, make sure the location of the executable is in your PATH variable.

This site may help too: http://kylecordes.com/2008/git-windows-go

i will suggest you to use tortoisegit , a git for window. But yet , develop rails in window is suffering , why don't you just dual boot your computer to linux and window ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM