Skip to content

Instantly share code, notes, and snippets.

@kampfgnu
Last active December 16, 2015 02:29
Show Gist options
  • Save kampfgnu/5362858 to your computer and use it in GitHub Desktop.
Save kampfgnu/5362858 to your computer and use it in GitHub Desktop.
init empty git repo on my ubuntu machine
//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