Created
February 4, 2012 18:59
-
-
Save webdevwilson/1739489 to your computer and use it in GitHub Desktop.
Host git over SSL
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
# on your server (via ssh) | |
mkdir ~/git/yourprojectname.git | |
cd ~/git/yourprojectname.git | |
git --bare init | |
# in your project directory (on your local machine): | |
# setup your user info | |
git config --global user.name "Firstname Lastname" | |
git config --global user.email "[email protected]" | |
# initialize the workspace | |
git init | |
git add . | |
git commit -m "initial commit" | |
git remote add origin ssh://[email protected]/~/git/yourprojectname.git | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment