Tangible Bytes

A Web Developer’s Blog

Git Cherry Pick Unstaged

I wanted to borrow a commit from another branch

git cherry-pick -n some-commit
git reset

This copies the code to my workspace but without the commit and unstaged

So I can check it works OK without bringing the commit to my branch