I have two git repos that I cloned on my local machine. I'm attempting to apply a change from one repo to the other:
cd path/to/local-repo1
git fetch path/to/local-repo2 <sha1>
// cherry-pick from fetch head, etc.
I'm getting:
fatal: Couldn't find remote ref <sha1>
fatal: The remote end hung up unexpectedly
I found git: Apply changes introduced by commit in one repo to another repo, but why is it that git does not recognize the sha1 in another local repo? Turns out that if I replace the sha1 with the name of a branch, it succeeds, but I need to do this with a multitude of sha1's and don't really want to create a branch on each one in order to reference them.