Skip to content

Cherry-pick individual file changes - not entire commits. #1756

@VashJuan

Description

@VashJuan

I need to review & then optionally pull specific files from other branches.

I can review file changes nicely with GitLens, but would love the ability (not too hard hopefully?) to right click on a file from another commit/branch and have an option to "Stage this file to the current checked out branch", or specifically enable this git command: git checkout --patch %CommitName% %FilePath(s)% which should do the same thing. (If the file would be new, then drop the --patch option.)

Maybe this is already possible - i.e., that I just didn't recognize the terminology/workflow to do this?

More on this and various solutions are at:
https://stackoverflow.com/questions/70489371/can-gitlens-do-a-selected-file-checkout-cherry-picking-selected-files-to-anoth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions