Forrest logo
back to context overview

git-cherry-pick

List of commands for git-cherry-pick:

  • git-cherry-pick:tldr:8c0e3 git-cherry-pick: Apply a commit to the current branch.
    $ git cherry-pick ${commit}
    try on your machine
    explain this command
  • git-cherry-pick:tldr:95933 git-cherry-pick: Add the changes of a commit to the working directory, without creating a commit.
    $ git cherry-pick -n ${commit}
    try on your machine
    explain this command
  • git-cherry-pick:tldr:c90ee git-cherry-pick: Apply a range of commits to the current branch (see also `git rebase --onto`).
    $ git cherry-pick ${start_commit}~..${end_commit}
    try on your machine
    explain this command
  • git-cherry-pick:tldr:faabd git-cherry-pick: Apply multiple (non-sequential) commits to the current branch.
    $ git cherry-pick ${commit_1} ${commit_2}
    try on your machine
    explain this command
back to context overview