DEV Community

Cover image for 1.Set Up Git Repository on Storage Server
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

1.Set Up Git Repository on Storage Server

Step 1: Install Git using yum

First, connect to the Storage server and install Git:
bash

  • Connect to the Storage server
ssh natasha@ststor01
Enter fullscreen mode Exit fullscreen mode
  • Install Git using yum
sudo yum install git -y
Enter fullscreen mode Exit fullscreen mode

Step 2: Create a bare Git repository

Once Git is installed, create the bare repository at the specified location:

# Create the bare repository
sudo git init --bare /opt/cluster.git
Enter fullscreen mode Exit fullscreen mode

Step 3: Verify the repository

Check that the repository was created correctly:
bash

Check if the repository exists and has the proper structure

ls -la /opt/cluster.git


Resources & Next Steps


Credits

  • All labs are from: KodeKloud
  • Thanks for providing them.

Top comments (0)