Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Just like CentOS 7, CentOS 8 provides git as a part of repository. You can simply install it by yum - it is super straightforward and easy in terms of server's point of view. It requires just creating an account for git and running couple of commands.


List of content

Table of Contents


STEP 1. Setup Git server

To install Git server on CentOS 8, you will need to run below command line with root permission.

Code Block
sudo yum install git-core

...

Code Block
sudo useradd git
sudo passwd git


STEP 2. Setup a Repository in your Git Server

The first action you should do is naming your repository. I will name it as chun in this case. For project chun, you will need to run below commands. 

Code Block
sudo su git
mkdir -p /home/git/chun.git
cd /home/git/chun.git
git init --bare


Now you will need to setup your client in order to do the next steps

To be updatedTo be updated later...


Useful web sites

https://www.linux.com/tutorials/how-run-your-own-git-server/