# fatal: cannot do a partial commit during a merge.

**Code:** `fatal: cannot do a partial commit during a merge` · **Category:** Git · **Seen on:** Git

You tried to commit selected files in the middle of a merge.

## Meaning

Finish the merge with a full commit (`git add -A && git commit`) or abort it with `git merge --abort`.

## Common causes

- `git commit file` while merging
- Merge not finished
- `-o`/paths used

## Quick fix

1. `git add .` then `git commit`
2. `git merge --abort`
3. Avoid path arguments during merges

## Detailed fix by platform

### Git

1. 

```bash
git add -A
git commit
```


## How to diagnose

1. **Merge** — in progress?
2. **Paths** — given?
3. **Abort** — fine?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/git/commit-partial-during-merge)
