I wonder if there is the way to copy one commit to another branch without checking out that branch.
For example, I have two branches: master and p
master
p
https://github.com/lennartcl/gitl provides "git cherry-copy" and "git cherry-move" scripts that do this and handle most of the corner cases.