Situation:
There is a branch of the finished feature.
After merge into the general branch develop, I delete the feature line.
But its commits are still visible in the story:
How can they be removed or hidden?
Situation:
There is a branch of the finished feature.
After merge into the general branch develop, I delete the feature line.
But its commits are still visible in the story:
How can they be removed or hidden?
Each commit contains (as an integral part) a link to the “parent” commit (merge commits contain more than one link to “parents”). The “parent” commit, in turn, contains a link to its “parent”, and so on. so a coherent change history is built.
if you delete any commit, the “connection of times” will be broken - because its “descendant” does not contain a reference to the “grandfather”.
to restore connectivity without rewriting history is impossible. and if you decide to rewrite, then be prepared for the pitfalls .
Source: https://ru.stackoverflow.com/questions/577971/
All Articles