# 1.Git Install and Create Repository

### Lab Information

The Nautilus development team shared with the DevOps team requirements for new application development, setting up a Git repository for that project. Create a Git repository on Storage server in Stratos DC as per details given below:


    Install git package using yum on Storage server.

    After that, create/init a git repository named /opt/apps.git/ (use the exact name as asked and make sure not to create a bare repository).



### Lab Solutions

#### Step-by-Step Solution



Step 1: Connect to the Storage Server from Jump Host

First, connect to the jump host, then to the storage server:


```
# From jump host, connect to storage server
ssh natasha@ststor01

# Password: Bl@kW
```

Step 2: Install Git using YUM

```
# Switch to root or use sudo if configured
sudo su -
```



```
# As root user
yum install git -y
```

Step 3: Create/Initialize the Git Repository

```
# Initialize git repository at /opt/apps.git
git init /opt/apps.git
```

Step 4: Verify the Installation and Repository


```
# Check git version to confirm installation
git --version

# Check the repository structure
ls -la /opt/apps.git/

# Verify it's a regular repository (not bare)
cd /opt/apps.git
git status

```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5oahly6xt03act2x3qds.png)

---
##### **Resources & Next Steps**
##### 📦 Full Code Repository: [KodeKloud Learning Labs](https://github.com/thukhakyawe/100-Days-Of-DevOps-KodeKloud-Challenges-Solutions)
##### 📖 More Deep Dives: [Whispering Cloud Insights](https://thukhakyawe.hashnode.dev/) - Read other technical articles
##### 💬 Join Discussion: [DEV Community](https://dev.to/thukhakyawe_cloud) - Share your thoughts and questions
##### 💼 Let's Connect: [LinkedIn](https://www.linkedin.com/in/thukhakyawe/) - I'd love to connect with you
---
##### **Credits**
##### • All labs are from: [KodeKloud](https://kodekloud.com/)
##### • I sincerely appreciate your provision of these valuable resources.
---
