Lets say our commit history looks like
1--2--3--4 ^ HEAD
Where 4 is the most recent commit.
Is there a way to replay the changes from commit 2 (the differences between 2 and 1) onto commit 4?
You are probably wondering why anyone would want to do that. Lets say that this is your production branch that is always supposed to be in a working state. Lets say that earlier, when the commit history looked like
1--2 ^ HEAD
You had a realization and thought that commit 2 might break everything, and so you quickly pushed out a revert commit, where commit 3 reverts commit 2. Then someone makes commit 4 that contains good content you want to keep. At this point you realize that commit 2 was actually ok, and so you want to replay it on top of 4.