How to setup a Git server

tags: git unix tutorial

To create a git server, you need to do the following:

  1. Setup SSH.
  2. Install git.
  3. You are done.

Yes. You are done, if you are intending to use it as a personal git backup server (Which is what I need it for).

You just create a git repository anywhere you want (I do it at ~/git/) using the following command.

git init --bare <<repo-name>>

To clone this repo, use the following command on your local machine.

git clone username-on-server@serverhostname(or ip address):git/repo-name

Author: tusharhero (tusharhero@sdf.org)

tusharhero's pages is licensed under CC BY-ND 4.0

Date: 2024-05-12 Sun 03:18

Site built at: 2024-05-11 Sat 18:19

Emacs 30.0.50 (Org mode 9.6.15)