Preparing for git repository publication

I have a bunch of git repositories that I started in my box.  Now I want to put them on a server and access them through ssh.  Here are the commands that I used to make that happen:

  1. Make a special clone:git clone –bare PROJECT project.git
  2. Put special clone on directory in server : scp -r project.git uname@server:path
  3. Make sure you have correct permissions.  Use chmod.
  4. Test your setup. git clone ssh://uname@server/path/project.git

The first command makes a copy of the git metadata only.  That means that you will not house unnecessary data on the server.

Unknown's avatar

About joelgranados

I'm fascinated with how technology and science impact our reality and am drawn to leverage them in order to increase the potential of human activity.
This entry was posted in git. Bookmark the permalink.

Leave a comment