Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git pull cygwin not a git-command

Hi I just installed git cygwin on my windows pc at work, but somehow git pull doesn't seems to be working.

the out put is :

git: 'pull' is not a git-command. See 'git --help'.

Did you mean this? pull

Cant seem to figure this one out, this works fine using the msysgit version.

like image 549
jagguli Avatar asked Mar 08 '10 04:03

jagguli


1 Answers

Could you check your shell (like this user did)?

echo $SHELL
/usr/local/anothershell

it should be:

echo $SHELL
/bin/bash

Check out also your $PATH

$ type -a git 
> git is /cygdrive/c/cygwin/bin/git

 export PATH=/bin:$PATH 
$ type -a git 
> git is /bin/git 
> git is /cygdrive/c/cygwin/bin/git

Note: if you have the same kind of error for git-svn (git: 'svn' is not a git-command. See 'git --help'.), make sure that (see this blog post):

  • svn is installed
  • Perl is installed
  • you did download Error.pm from CPAN
like image 161
VonC Avatar answered Sep 24 '22 16:09

VonC