简体   繁体   中英

Upgrading oh my zsh error - corrupt/loose object

I was just prompted to update oh my zsh but when I tried to do so I got the following error:

Updating Oh My Zsh
error: cannot pull with rebase: You have unstaged changes.
error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty
error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty
fatal: loose object 40fafe0f59371d1a9d83b83c614acfd1d740aabb (stored in .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb) is corrupt

Anyone have an idea what to do? Haven't been able to find anything

maybe someone needs

  1. Copy a folder with your project to another folder
  2. Delete the origine folder with project
  3. Download latest version of your project from your github
  4. Replace all file in project folder with files from copy folder (important.!! All files except folder .git)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM