git & cygwin issues
======================
windows file properties/attributes
===================================
see for:
core.fileMode
core.ignorecase
core.autocrlf
in:
http://www.kernel.org/pub/software/scm/git/docs/git-config.htmlcore.ignorecase _must_ be false or (missing)
ie ~/.gitconfig
[core]
fileMode=true
ignorecase=false
autocrlf=false
cygwin SSH issues
==================
so the current issue with git and cygwin is described here:
http://sourceware.org/ml/cygwin/2010-05/msg00460.htmlIn short, the culprit is openssh,
ie using the git or http protocol instead of ssh it works.
It also works using a different ssh implementation
e.g. Putty:
http://gitdiscoveries.wordpress.com/tag/cygwin-1-7-1/I just followed what they write:
- Use the attached plink.sh as the ssh client:
export GIT_SSH=/home/sven/plink.sh
Make sure you edit plink.sh and the above environment variable
to reflect your user account.
plink.sh is inlined at the end of this email.
- Copy your putty private key to your home .ssh folder,
or reference it directly (see plink.sh).
- Make sure the folder permissions are fine
chmod -R go-rwx ~/.ssh
.. or do it file by file, where at least the private
keys are mode 0600.
- And start/use putty's pageant and:
- Add your private key to it's keychain,
you have to enter your passphrase here only once.
- Make an initial connection to your destination
(I guess guru) - so it learns the host keys/fingerprint,
which you have to confirm.
Then .. it works :)
~Sven
+++
#! /bin/bash
set -x
/cygdrive/c/putty/plink.exe -v -l sven -i "c:\\cygwin\\home\\sven\\.ssh\\id_rsa.ppk" $*