Skip to content

Instructions on how to cherry pick a commit from another branch to current branch #907

Answered by CKolkey
searleser97 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! Sure thing.

  1. From the status buffer (:Neogit), open the Log Popup (l by default)
  2. Check out that branch that you want to pull the commits into
  3. Hit o for Log other. This will bring up a list of branches.
  4. Select the branch you want to harvest commit(s) from.
  5. The Log Buffer will open up, showing commits for that branch.
  6. You can now hit A to bring up the cherry pick popup, and choose either Pick or Apply.
    • You can check out :h neogit_cherry_pick_popup for details on that
    • You can also do a linewise-visual selection (V) to select multiple commits.

Hitting <cr> (enter) will open the commit view for a specific commit - the cherry pick popup works from there too.

Let me know if you have any…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@searleser97
Comment options

@CKolkey
Comment options

Answer selected by searleser97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants