« Das Draht rockt die Hasenschaukel | Main | eOPAC »
Ich will auch GIT - also mein Mini-GWT-Projekt da einstellen - was da alles schiefgehen kann...
Setup: Windows XP und Cygwin - nein danke, ich will kein msysGit sondern nur eine "Bash mit alles" - das ging nicht ohne Schmerzen ab!
Ok, SSH-Key RSA generieren:
$ ssh-keygen.exe -C github@tixus.de -t rsa
Generating
public/private rsa key pair.
Your identification has
been saved in /cygdrive/c/Documents and Settings/tsp/.ssh/id_rsa.
Your
public key has been saved in /cygdrive/c/Documents and
Settings/tsp/.ssh/id_rsa.pub.
Fertig! Editor für die Commit-Nachrichten setzen:
$ git config --global core.editor "/cygdrive/c/Program\
Files/Windows\ NT/Accessories/wordpad.exe"
.gitignore anlegen
/.metadata
*.class
A breeze. Alles im Verzeichnis hinzufügen:
$ git add .
Entferntes Repository angeben:
$ git remote add github git@github.com:tixus/opac.git
Und den Mist hochdrücken:
TSP@28058-TMS-ITS08 /cygdrive/c/project/selfstudy/opac
$
git push github master
Permission denied (publickey).
fatal:
The remote end hung up unexpectedly
WTF?! Das Problem haben einige, also lesen: http://help.github.com/msysgit-key-setup/
Ok, SSH-Keys bei Github ablegen:
Nochmal pushen - Permission denied (publickey) SameSame.
Ich lese weiter, allerdings nicht genau genug, denn die Lösung steht da schon:
Permission denied (publickey).
If id_rsa.pub doesn’t work try
id_dsa.pub. You might need to generate a new dsa key with ssh-keygen -t
dsa if you just have an rsa key.
Einige Minuten später schaue ich nochmal genau auf die Debug-Ausgaben von
$ ssh -vvv git@github.com
Und mir fällt die Suche nach DSA-Schlüsseln auf:
debug1: Authentications that can continue: publickey
debug1:
Offering public key: /cygdrive/c/Documents and Settings/tsp/.ssh/id_dsa
debug3:
send_pubkey_test
debug2: we sent a publickey packet, wait for reply
Ok, dann leg ich den eben auch noch an............. now I'm on!
TSP@28058-TMS-ITS08 ~
$ ssh git@github.com
PTY allocation
request failed on channel 0
ERROR: Hi tixus! You've successfully
authenticated, but GitHub does not provide shell access
Frisch gepusht - AAAAARGH
TSP@28058-TMS-ITS08 /cygdrive/c/project/selfstudy/opac
$
git push github master
ERROR: tixus/opac doesn't exist
yet. Did you enter it correctly?
fatal: The remote end
hung up unexpectedly
Ok! Ein Repository legt sich nicht von selbst an, schade eigentlich - no
magic here. Gut, dann eins
angelegt und den guten Anweisungen gefolgt:Next steps:
mkdir opac
cd opac
git init
touch README
git add README
git commit -m 'first commit'
git remote add github git@github.com:tixus/opac.git
Yippie!
TSP@28058-TMS-ITS08 /cygdrive/c/project/selfstudy/opac
$
git push github master
Counting objects: 137, done.
Delta
compression using up to 2 threads.
Compressing objects:
100% (119/119), done.
Writing objects: 61% (84/137),
1.91 MiB | 69 KiB/s