Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Saturday, December 11, 2010

Per Host SSH Key Configuration

You can automatically specify an SSH private key, via local configuration, when connecting to SSH hosts. This is especially helpful when using Git to connect to multiple repositories which require different SSH keys.

On a Unix client (or compatible shell such as cygwin, Xming, or msysgit ), create/modify ~/.ssh/config
Host HOSTNAME_OR_IP
IdentityFile ~/.ssh/OTHER_ID_RSA

Monday, May 25, 2009

Pushing to a Gitosis Git Repo for the first time

git push origin master:refs/heads/master

Saturday, March 28, 2009

Capistrano deploy.rb for Git and Phusion Passenger

Here is my Capsitrano deploy.rb script/recipe for use with Git repos on servers powered by Phusion Passenger (mod_rails).

http://gist.github.com/87207