1

I have downloaded and installed the Git setup on Windows 7. But whenever I try to create/clone or init a new repo, it generates the following error.

'git' is not recognized as an internal or external command, operable program or batch file.

Can anyone please suggest me that what possibly is it asking for ?

3 Answers 3

1

You need to add the folder which contains the git executable to your Windows Path

Sign up to request clarification or add additional context in comments.

1 Comment

I just tried what you suggested but it still doesn't work. Earlier when I installed git on Windows XP, it was automatically added to the path but now on Windows 7, i don't understand.
0

With msysgit, you need to launch a special shell, through <path/to/msysgit>/git-cmd.bat.
That will take care of the PATH for you.

And of you need git for interacting with GitHub repositories, don't forget windows.github.com.
It also include an msysgit distribution and set the PATH correctly as well.

Comments

0

If you use the bash provided with MSysGit, you shouldn't have this problem.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.