-
-
Save trey/60640 to your computer and use it in GitHub Desktop.
Hosting Git repositories on Slicehost.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /var/git | |
mkdir $1.git | |
cd $1.git | |
git --bare init | |
sudo chown -R git . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone ssh://git@slice1.example.com/var/git/$1.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git remote add origin ssh://git@slice1.example.com/var/git/$1.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!