Performs changes. When commits are made one after another in the same branch (normal case), the changes are summarized. When branches are created, changes made to one branch are not displayed in other branches. Merging is required to merge independent changes.
Consider the following simple story. Commits modify a single file. The contents of the file after each commit are displayed in double quotes. Commit 0 is the first commit, commits from 1 to 4, adds the English name of its commit number, and commit 5 combines the changes made using commits 3 and 4.
* commit 5: "one two three four" |\ Merge: 3 4 | | | | | * commit 4 "one two four" | | | | * | commit 3 "one two three" |/ | * commit 2: "one two" | | * commit 1: "one" | | * commit 0: ""
Fiction 4 was made in another branch. This corresponds to fixation IA-481. Presumably, this commit made some changes to the commit "Union of IA-481 branch (Release2) ...." commit, these changes were integrated into the main branch. This is a common workflow when working on several things: a branch, committing changes, and then merging them into the main branch. Without merging, the changes just sit in a separate branch and do nothing.
source share