# Git Install and Create Repository

### Tasks

1. Install `git` package using `yum` on `Storage server`.
2. After that, create/init a git repository named `/opt/ecommerce.git` (use the exact name as asked and make sure not to create a bare repository).

### Steps

{% stepper %}
{% step %}

### ssh to storage server

```bash
ssh natasha@ststor01
```

{% endstep %}

{% step %}

### Get sudo access

```
sudo su -
```

{% endstep %}

{% step %}

### Install git

```
yum install -y git
```

{% endstep %}

{% step %}

### Get the directory

```
cd /opt
```

{% endstep %}

{% step %}

### Init the file

```
git init /opt/ecommerce.git
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2Fp8HzwBXB3p98SmQu9wLJ%2Fimage.png?alt=media&#x26;token=92fc37ec-28c8-4f3a-95c6-ac6d97c8ed0a" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
