Git Cherry-Pick

cherry-pick {commits...} is a powerful tool for introducing individual commit(s) to the current branch without incorporating branches like 202204261122 and 202204261123. The commits will be attached to the HEAD of the current branch in ascending order.

This becomes handy when back-porting certain features or security fixes for the current branch is desirable. It makes maintaining several versions of product possible without muddling the main branch’s commit history.

Links to this page
  • Git Rebase

    When using the interactive mode, -i, rebase could arbitrarily choose which commits should be applied and what order should they be in. This is suitable for history rearrangement. It shares some similarity with 202204261212. However, the latter does not incorporate branches.

  • Git
#vcs #git #devops