# Set Up Git Repository on Storage Server

### Tasks

1. Utilize `yum` to install the `git` package on the `Storage Server`.
2. Create a bare repository named `/opt/apps.git` (ensure exact name usage).

### Steps

{% stepper %}
{% step %}
SSH into `Storage Server`

```bash
ssh natasha@172.16.238.15
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2Fknd7mIcNkFOBYHKzogd2%2Fimage.png?alt=media&#x26;token=f5052960-0d7f-4b3a-8f78-57209231ad57" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Update the Package Manager's Cache

```bash
sudo yum update -y
```

{% endstep %}

{% step %}
Install Git

```bash
sudo yum install git -y
```

{% endstep %}

{% step %}
Verify Git Installation

```bash
git --version
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2Fc7U92LdCcOo2Zgh6g0e7%2Fimage.png?alt=media&#x26;token=7a1e5417-8ca4-49cd-b997-0d543ef953be" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Change the current directory to the `/opt` directory

```bash
cd /opt
```

{% endstep %}

{% step %}
Create the bare repository using the `git init` command with the `--bare` flag

```bash
git init --bare apps.git 
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2F4TPAniVMIofHEAf8YuMb%2Fimage.png?alt=media&#x26;token=33b61640-a4e7-4ca8-9f95-0eeafc53c8e2" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
