Git rebase private branches in the distant past?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
I guess I did not read the manual and the guides, and probably just don't want to experiment with an unknown outcome.

The more that problems came after not before the end of a successful rebase and want to fix them.


What parameters do you need to call git rebase that would rewrite:

1)
D---E---F---G - master
/ /
-A---B---St.
-A---B---C'--D'---E---F---G - master

2)
C---D---E - master
/
-A---B---P---R---S - otherв
D---E - master
/
-A---B---C'---P---R---S - other
by | 4 views

1 Answer

0 like 0 dislike
in the second case like this:
git branch temp hashOfC
git checkout other
git rebase temp
\r
in the first case, look at interactive rebase: git rebase -i
allows you to make changes in previous commits, objednat them or skip
by

Related questions

0 like 0 dislike
1 answer
asked May 20, 2019 by Urichalex
0 like 0 dislike
2 answers
asked May 20, 2019 by skynet32rus
0 like 0 dislike
1 answer
asked Apr 24, 2019 by cester
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked May 21, 2019 by dmitrydanyliuk
110,608 questions
257,186 answers
0 comments
28,002 users