« Back to Index

set-up remote git repository

View original Gist on GitHub

Tags: #git

remote-git.md

Set-up remote git repository on a standard server

The first thing to do is to install Git on the remote server.

Once you do that the rest of the process is split into three sections:

  1. Server set-up
  2. Local set-up (push commits)
  3. Server (pull commits)

Server set-up

Note: if (for example) your web directory is httpdocs then move up one level from there.

The following example assumes httpdocs is your web directory…

The following three commands are the black magic for getting a remote git repo setup:

Local set-up (push commits)

Server (pull commits)