Skip to content

Instantly share code, notes, and snippets.

@mpearce
Created August 25, 2010 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpearce/549167 to your computer and use it in GitHub Desktop.
Save mpearce/549167 to your computer and use it in GitHub Desktop.
# http://book.git-scm.com/4_setting_up_a_private_repository.html
# Setting up a new git repo on a server. I always forget the --bare and instead get receive.denyCurrentBranch errors. Thanks Scott for the book.
$ git clone --bare /home/user/myrepo/.git /tmp/myrepo.git
$ scp -r /tmp/myrepo.git myserver.com:/opt/git/myrepo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment