Skip to content

Instantly share code, notes, and snippets.

@benwei
Created April 1, 2013 10:59
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 benwei/5284303 to your computer and use it in GitHub Desktop.
Save benwei/5284303 to your computer and use it in GitHub Desktop.
git over ssh note

how to git over ssh

create a base repository

 $ mkdir -p testprj
 $ cd testprj
 $ git init --bare

copy your base repository to your ssh server

assumption: user is ubuntu

 $ scp -r testprj ubuntu@yourserver:~/testprj.git

how to clone your repository from your server

 $git clone ubuntu@yourserver:/home/ubuntu/testprj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment