# Git Create Branches

### Tasks

1. On `Storage server` in Stratos DC create a new branch `xfusioncorp_ecommerce` from `master` branch in `/usr/src/kodekloudrepos/ecommerce` git repo.
2. Please do not try to make any changes in the code.

### Steps

{% stepper %}
{% step %}

### ssh to storage server

```
ssh natasha@ststor01
```

{% endstep %}

{% step %}

### Get sudo access&#x20;

```
sudo su -
```

{% endstep %}

{% step %}

### Navigate to ecommerce directory

```
cd /usr/src/kodekloudrepos/ecommerce
```

{% endstep %}

{% step %}

### Checkout master branch

```
git checkout master
```

{% endstep %}

{% step %}

### Create new branch&#x20;

```
git checkout -b xfusioncorp_ecommerce
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FSGiGaoOb3MXR8pmDlzbW%2Fimage.png?alt=media&#x26;token=1754b06b-885b-43a6-bea3-8f05a4df44a9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Get git status

```
git status
```

{% endstep %}

{% step %}

### Get all branches

```
git branch -a
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FQp2P1fBwFeJSLj4U2Lvg%2Fimage.png?alt=media&#x26;token=1b18d5dc-34db-4cbb-a1d6-ad3e768fb678" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
