You are writing user documentation for a product. You have already written documentation for a few new features, each in a separate branch. After merging the feature-search
branch, you realise this way of merging can result in a complicated revision graph. Instead, you wish to merge these changes in a way that results in a simple linear revision graph.
feature-search
.feature-search
branch onto the main
branch. Delete the feature-search
branch.feature-delete
branch, while resolving any merge conflicts – in the features.md
, the delete feature should appear after the search feature.list
branch is not needed, as you have decided not to have that feature. Delete that branch.The resulting revision graph should be as follows:
gitGraph BT:
commit id: "Add features.md"
commit id: "Mention feature for creating books" tag: "v10"
commit id: "Add the delete feature"
commit id: "Add the search feature"