I did something really stupid using revert and I don't know how to fix it properly. I'll try to explain clearly.
I wanted to add foo
, bar
and baz
in a project repository.
For some reasons (because I'm an idiot), I did the following mess
(where "-xxx_commit" is a git-revert of "+xxx-commit"):
foo_branch
+foo_commit 1
bar_branch
+foo_commit 1
+bar_commit 2
-foo_commit 3
baz_branch
+foo_commit 1
+bar_commit 2
-foo_commit 3
-bar_commit 4
+baz_commit 5
Then, foo_branch
and baz_branch
has been merged in the upstream repository...
Therefore:
upstream/master
+foo_commit 1
+foo_commit 1
+bar_commit 2
-foo_commit 3
-bar_commit 4
+baz_commit 5
So now, foo
has been added, then deleted, and I can't merge or rebase upstream/master
from bar_branch
because it revert itself...
Have you any idea to clean that mess ?
Is there a git-idiot
command or something like that ?