Skip to content

Instantly share code, notes, and snippets.

@trey
Created February 9, 2009 03:15
Show Gist options
  • Save trey/60640 to your computer and use it in GitHub Desktop.
Save trey/60640 to your computer and use it in GitHub Desktop.
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
Copy link

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