Day 21: Set Up Git Repository on Storage Server | 100 Days of DevOps
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
yumon 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