I made a lot of commits to test my repository. Now I want to fix my history without data loss. My history looks like this:
A -> B -> C -> TEST D -> TEST E
But it should be this:
A -> B -> C (C + TEST D + TEST E)
How can I do it? Can rebase
or stash
help me?
UPD Ok this is my commit history:
commit 9f2c2e66d344aa27a5e681eb64c84738f2cd1d49
Author: babobka <babobka@bk.ru>
Date: Sat Jan 14 23:35:36 2017 +0300
Fixed files
commit 9ab55a4e4352daa9e5c27e9243d79a8c14dd6551
Merge: b52872c 856ee3f
Author: bbk <dolgopolov.work@gmail.com>
Date: Sat Jan 14 23:29:16 2017 +0300
Merged in develop (pull request #1)
New tests. New project structure. FindBugs plugin.
commit 856ee3fb4725564c1c5c976eacadb6e21aa2b937
Author: babobka <babobka@bk.ru>
Date: Sat Jan 14 23:24:02 2017 +0300
New tests. New project structure. FindBugs plugin.
commit b52872c300bde67154cec3b732755a47f9ff76cd
Author: babobka <babobka@bk.ru>
Date: Mon Jan 9 23:36:02 2017 +0300
Very big refactor.Can not remember what was done.
commit 0b330267150db40fb814bfc21387762d80a99e44
Author: babobka <babobka@bk.ru>
Date: Tue Jan 3 01:13:05 2017 +0300
First commit
I made git rebase -i 9ab55a4e4352daa9e5c27e9243d79a8c14dd6551 -m 'Rebasing'
, but I can not see any changes. Still the same history.