My git history was

```
A-B---D-------H-I-J
   \         /
    C---E-F-G

```

when I decided to do a `git rebase -i A` to move commit `F` right after commit `B`.

Now I got

```
A-B-----------F-C-D-E-F-G-I-J
   \
    C---E---G

```

which is not what I wanted.

How can I get to

```
A-B-F-D-------H-I-J
   \         /
    C---E---G

```

and what did I do wrong?