shah khan
shah khan

Reputation: 137

Error while using Git on windows 7

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 ?

Upvotes: 1

Views: 436

Answers (3)

Adam Dymitruk
Adam Dymitruk

Reputation: 129526

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

Upvotes: 0

VonC
VonC

Reputation: 1323263

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.

Upvotes: 0

ColinE
ColinE

Reputation: 70122

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

Upvotes: 1

Related Questions