Skip to content

Instantly share code, notes, and snippets.

@trey trey/repo
Created Feb 9, 2009

Embed
What would you like to do?
Hosting Git repositories on Slicehost.
#!/bin/bash
cd /var/git
mkdir $1.git
cd $1.git
git --bare init
sudo chown -R git .
#!/bin/bash
git clone ssh://git@slice1.example.com/var/git/$1.git
#!/bin/bash
git remote add origin ssh://git@slice1.example.com/var/git/$1.git
@jasonsemko

This comment has been minimized.

Copy link

commented Apr 22, 2011

You did this so differently than I had to for my own server, but after hours of searching I was desperate and some dang reason I followed your first two steps and got it all working! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.