Posts tagged git
Accessing git over ssh on a non-standard port
Nov 24th
Simple ssh access to a git repo can be sufficient for a small dev team–but what if you’re using a non-standard ssh port?
The solution–do as Linus says. Use ~/.ssh/config.
My config now looks like this:
Host my.servername.org Port 1234
Remember that ~/.ssh needs to be 700 (read/write/execute for only the owner), and the files inside are all 600:
$ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/*
Installing git with MacPorts
Nov 15th
The Good: MacPorts makes git, the new source version control system hotness, available to Mac users.
The Bad: MacPorts sometimes has attitude, and poops out trying to compile or install packages.
The Ugly: MacPorts doesn’t tell you how to fix it.
So here was what I saw:
mrm@whack:~$ port search git cogito devel/cogito 0.18.2 Git core and cogito tools to provide a fully-distributed SCM git-core devel/git-core 1.6.0.4 A fast version control system qgit devel/qgit 2.2 A graphical interface to git repositories stgit devel/stgit 0.14.3 Push/pop utility on top of GIT cgit www/cgit 0.8 A fast web interface for the git source code management system
Great. I’ll install git-core. What additional goodies are there?
mrm@whack:~$ port info git-core git-core 1.6.0.4, devel/git-core (Variants: universal, doc, gitweb, svn, bash_completion) http://git.or.cz/ Git is a fast, scalable, distributed open source version control system focusing on speed and efficiency. Library Dependencies: curl, zlib, openssl, expat, libiconv Runtime Dependencies: rsync, perl5.8, p5-error Platforms: darwin Maintainers: bryan@larsen.st maccheck@gmail.com openmaintainer@macports.org
OK, so I want svn and doc and bash_completion extras:
mrm@whack:~$ sudo port install git-core +svn +doc +bash_completion +gitweb ... Error: Target org.macports.fetch returned: fetch failed Error: The following dependencies failed to build: p5-svn-simple subversion-perlbindings subversion p5-term-readkey rsync popt Error: Status 1 encountered during processing.
So we’re now at the bad and ugly. When ports cops attitude, run these two commands:
sudo port selfupdate sudo port upgrade outdated
and wait. If there are any failures, look at the package that failed, and restart the installation of that package. Once that’s completed, re-do the original port install git ... command.