Hi I just installed git cygwin on my windows pc at work, but somehow git pull 开发者_如何学JAVAdoesn'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.
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
The issue was fixed with a clean reinstall of cygwin. But dont know ahat caused it.
just stumbled over the same problem and it seems a recent antivirus update is to blame.
it first blocks perl.exe
and sh.exe
and then finally deletes them from the harddrive.
the messages are as follows (i only have a german version):
13.04.2010 08:37:42 C:\PROGRAMME\GIT\BIN\PERL.EXE Der Prozess versucht, in einen anderen Prozess einzudringen. Dieses Verhalten ist charakteristisch für bestimmte Schadprogramme (Invader)
13.04.2010 08:37:42 C:\PROGRAMME\GIT\BIN\PERL.EXE Aktion "Das Verschieben nach Quarantäne" wurde gewählt
13.04.2010 08:37:42 C:\PROGRAMME\GIT\BIN\PERL.EXE Die ursprüngliche Datei wurde gelöscht.
…
13.04.2010 08:47:38 C:\PROGRAMME\GIT\BIN\SH.EXE Der Prozess versucht, in einen anderen Prozess einzudringen. Dieses Verhalten ist charakteristisch für bestimmte Schadprogramme (Invader)
13.04.2010 08:47:38 C:\PROGRAMME\GIT\BIN\SH.EXE Datei wurde nach Quarantäne verschoben.
13.04.2010 08:47:38 C:\PROGRAMME\GIT\BIN\SH.EXE Der Prozesse wurde zwangsläufig beendet.
I figured this one out - apparently the newer version of git is different somehow in Cygwin. In Windows XP I had to add 'C:\cygwin\lib\git-core' to the PATH and that fixed it right up. Just make sure you close all bash windows before that and then restart them.
I diden't really fix the problem with git on cygwin. My approach was to switch to msysgit .
精彩评论