Skip to main content

Command Palette

Search for a command to run...

Day 21: Set Up Git Repository on Storage Server | 100 Days of DevOps

Updated
1 min read
R
I’m currently working in DevOps and documenting my learning journey along the way. From CI/CD pipelines to cloud and containers, I’m exploring how modern systems are built and deployed. This blog is where I share what I learn, break down concepts in simple terms, and track my progress. Learning one concept at a time, and trying to apply it practically.

Content:

Today I worked on setting up a Git repository on the storage server as requested by the Nautilus development team. This task was important to enable version control and collaboration for the upcoming application development project.


What I Learned

  • How to install Git using yum on a CentOS-based system
  • Difference between a normal repository and a bare repository

Steps I Followed :

1. Connected to Storage Server

ssh natasha@ststor01

2. Updated System Packages

sudo yum update -y

3. Installed Git

sudo yum install -y git

4. Created Bare Git Repository

sudo git init --bare /opt/cluster.git

My Understanding

This task helped me understand how a centralized Git repository is created for teams to push and pull code. A bare repository is essential in such scenarios because it doesn’t contain a working directory and is ideal for sharing code across multiple developers.


What I Found Interesting

I found it interesting that creating a central Git repository is very simple, yet it plays a crucial role in enabling collaboration and version control in real-world DevOps workflows.


📌 Full notes: GitHub link

More from this blog