Answer the question
In order to leave comments, you need to log in
Is it possible to make a commit between the old two commits?
Let 's say
git init -> commit A -> commit B -> commit C
can I cram, for example, commit D between commits A and B? to get it like this:
git init -> commit A -> commit D -> commit B -> commit C
Answer the question
In order to leave comments, you need to log in
Can I cram, for example, commit D between commits A and B? to make it look like this:
git rebase
. The complexity of stuffing directly depends on how many common lines change D, B and C. If they are completely independent, git rebase
it will do everything itself, if not, you will have to resolve conflicts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question