Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git fatal: bad object when cherry-pick commit from another remote

Tags:

git

i have this situation with two remote repos:

my-repo
  -master
  -mybranch (branch-to-cherry-pick-to)

other-repo
  -master (branch-to-cherry-pick-from)

so i want to get some cherry-picks from the other remotes master branch into mybranch.

I have added another remote by doing: git add remote other-origin somegitrepo and verified with git remote -v which showed my output like this:

origin my-repo (fetch)
origin my-repo (push)
other-origin other-repo (fetch)
other-origin other-repo (push)

Now when i try to git cherry-pick commitnr i get the fatal: bad object Error.

The commits i want to cherry pick btw: https://github.com/wekan/wekan/pull/1003/commits

I also did git fetch --all

What is the problem here?

like image 535
Gobliins Avatar asked Mar 15 '26 20:03

Gobliins


1 Answers

Did you missed a merge after fetch?

Try:

$ git pull
$ git cherry-pick ...
like image 88
Alex Avatar answered Mar 17 '26 22:03

Alex