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.

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s