fatal: bad object xxx

前端 未结 12 2100
[愿得一人]
[愿得一人] 2021-02-03 17:00

I tried reverting to a previous git commit with:

git revert xxx

I\'m now receiving this error as a response:

fatal: bad object          


        
12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 17:40

    git pull

    OR

    git fetch origin

    Reason: If the commit id which you are trying to cherry pick is not available in your local git, then there is a possible of this error.

    Doing a git pull will fix this. If this hasn't been fixed, ask the person who has shared the commit id to push the change to origin and do a git pull

提交回复
热议问题