Re: git on Cygwin: Not a valid object name HEAD
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Aug 9, 2007, 06:38 UTC
- Message-ID
- <872D90BF-CB37-496B-9E7D-3C9A19125EBA@zib.de>
- In-Reply-To
- <46BAADC8.9020003@trolltech.com>
On Aug 9, 2007, at 8:01 AM, Marius Storm-Olsen wrote:
Show 15 quoted lines
>>> I have two 'crashes' during installation. I attached snapshots of >>> the requesters. I don't know how to copy text from the installer. >>> Therefore I attached snapshots. >> Hmm... how do I get started? I naively chose cygwin as my shell. I >> set >> export PATH=$PATH:/cygdrive/c/msysgit/bin >> then I tried >> $ git clone git://git.kernel.org/pub/scm/git/git.git c:/msysgit/ >> bin/git-clone: line 214: git-init: command not found >> Maybe it's related to the errors during installation? >> How can I build and install git manually, based on the result of >> GitMe-3's basic setup? > > Ok, first, which system is this? Windows 2000/XP/Vista? > (The Gitme installer doesn't work on old ones for now)
XP 32bit.
Show 5 quoted lines
> Try running gitme from a terminal. Download gitme-3.exe into C: > \temp, open a native terminal (Start - Run - Type "cmd" <enter>); > then in the terminal, type: > C:\temp> set PATH=%WINDIR%\system32;%WINDIR% > C:\temp> gitme-3
> Does it work then? If so, the problem is likely to be that you have > Cygwin in the system path, which is not advisable/compatible with > MSys.
I had cygwin at the tail of my PATH. After removing it the installation went through flawlessly.
A check in the installer would be a good idea.
Would you recommend running git only from the mingw shell prompt, or can I start it also from a Cygwin shell prompt?
Thanks a lot,
Steffen