Last active
December 16, 2015 02:29
-
-
Save kampfgnu/5362858 to your computer and use it in GitHub Desktop.
init empty git repo on my ubuntu machine
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
//server side: | |
GIT_DIR=project.git git init | |
cd project.git | |
git --bare update-server-info | |
cp hooks/post-update.sample hooks/post-update | |
//on client side: | |
git clone ssh://<username>@<remote-git-hostname>/path/to/dir.git | |
//on first push to master: | |
git push ssh://<username>@<remote-git-hostname>/path/to/project.git master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment