using git with mac os x (PATH problems)
Lately I’ve been toying around with git as a mean to independently develop on my workstation and when I’m gone on my laptop. Although it does in fact require some brainpower to wrap your mind around it (as Linus admitted himself) it looks really promising. So far I have only worked out the basic features (not quite as much as I know about subversion). One thing I can say already though is that it really is fast.
When using it on Mac OS X (which has really been pissing me off in the past few weeks ;) you probably installed it using fink. Fink installs binaries into /sw/bin and /sw/sbin. Now, when you do an “git pull ssh://your-mac-os-machine/path” it tells you that it couldn’t find git-upload-pack, because the PATH variable only contains /usr/local/bin etc. What you have to do is:
- Edit /etc/sshd_config and set “PermitUserEnvironment yes”
- Create ~/.ssh/environment which should contain: “PATH=/sw/bin:/sw/sbin:<your -other-paths>”
- Restart sshd (you can do it by disabling/enabling “Remote Login” in the System-Preferences
All those steps have to be taken on your Mac OS X machine with the user you intend to do the git-push’s to. After that it should work fine.
Nachdem 2 Jahre rum waren konnte ich mir im Laufe einer Vertragsverlängerung ein neues Handy aussuchen. Ich war zwar mit meinem alten K750i sehr zufrieden (besonders mit der Kamera), aber da ich natürlich auch ab und zu einen gewissen Spieltrieb verspüre hab ich mich dann für so ein tolles PDA-Smartphone-Hälfte-der-Sachen-brauch-ich-eh-nicht-Telefon entschieden, das o2 Xda Neo, original HTC Prophet. Und da wollte ich jetzt mal ein paar Worte zu verlieren.
Bin heute darauf gestossen weil ich wirklich verzweifelt gesucht habe. Der Akku meines G4 Powerbooks hat schon vor geraumer Zeit das Zeitliche gesegnet. Seit dem verhält mein Laptop sich also wie ein Desktop, zieht man den Stecker raus ist das Ding aus (uncool). Was viel nerviger ist ist dass ich dadurch gezwungen bin den Laptop erst komplett runter und dann wieder hoch zu fahren wenn ich mich nur vom Küchentisch auf die Couch setzen will. Das dauert definitiv zu lange.