> For the complete documentation index, see [llms.txt](https://raviram.gitbook.io/version-control/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raviram.gitbook.io/version-control/git-moving-ahead/group-2/branching-demo/create-a-hotfix.md).

# Create a hotfix

## Create a `hotfix` branch

Now, you have a hotfix to make. Let’s create a `hotfix` branch on which to work until it’s completed:

```bash
git checkout -b hotfix
```

Implement the changes - whatever it takes to fix the bug and then committed like this

At this point, **manually make some changes** to the file and commit as below:

```bash
git commit -a -m 'C4'
```

Hotfix branch based on `master`

<figure><img src="https://git-scm.com/book/en/v2/images/basic-branching-4.png" alt=""><figcaption></figcaption></figure>

You can run your tests, make sure the hotfix is what you want, we will now proceed for merging.
