1

I am very new to BitBucket.Problem is that PowerShell does not recognize git command.What I am trying to do is to Clone.When i copy address to PowerShell and press Return this message shows:

The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin g of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:4 + git <<<< clone https://B@bitbucket.org/B/firstrepository.git + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Does anyone know how to solve this? Thanks in advance!

Tim
  • 65
  • 1
  • 11
  • The error message has the answer. Your git application seems not to have been added to system environment path variable. Please refer to this thread -- http://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows -- for installing and adding GIT to PATH variable. – bigyanshr Mar 08 '16 at 14:32
  • But I do not have installed GitHub on my PC, i am using BitBucket web service – Tim Mar 08 '16 at 14:38
  • Would it be possible for you to show the exact commands you provided in your powershell command-line ? – bigyanshr Mar 08 '16 at 14:40
  • C:\Users\LAZAR\repos> git clone https://LazarB@bitbucket.org/LazarB/firstrepository.git The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin g of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:4 + git <<<< clone https://LazarB@bitbucket.org/LazarB/firstrepository.git + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException – Tim Mar 08 '16 at 14:48
  • First I login to BitBucket then I make repository.After that i click Clone and and copy the address "git clone LazarB@bitbucket.org/LazarB/firstrepository.git" to PowerShell. and after pressing enter the error shows – Tim Mar 08 '16 at 14:53
  • 1
    C:\Users\LAZAR\repos> git clone LazarB@bitbucket.org/LazarB/firstrepository.git The first term "git" in your command is the application name. In order to use that application you have to install it. Please refer to http://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows or https://git-scm.com/book/en/v2/Getting-Started-Installing-Git for installing and you should not see that error message again if correctly installed. – bigyanshr Mar 08 '16 at 14:55
  • This is it,thanks @bigyanshr !!! – Tim Mar 08 '16 at 15:44

1 Answers1

0

For posterity purposes I'm going to break out the hidden comment above by @bigyanshr into an answer:

Be sure to install the Git application as described on either this StackOverflow post or the Git 'Getting Started Installing Git' guide. This includes updating your PATH variable to include to your new Git installs 'Git/cmd' folder.

Marc Bosse
  • 336
  • 1
  • 3
  • 17