Home > Development, Hosting, Linux > fastest way to get git server v2

fastest way to get git server v2

March 19th, 2011

Over a year ago I have posted instruction how to setup simple git server, today I had to do it again but already having code so here is new instruction.

Create remote repository:

ssh mpapis@niczsoft.com -C "git init --bare repos/library3.git"

Create local repository:

git init
git add .
git commit -m "initial commit"

Tell local repository to synchronize with remote repository:

git remote add origin mpapis@niczsoft.com:repos/library3.git
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git push

You might be interested in the original post: fastest way to get git server

Categories: Development, Hosting, Linux Tags:
  1. March 22nd, 2011 at 08:49 | #1

    Wow, so easy :) Thanks a bunch!

Comments are closed.