Git error when pushing: object 15abe3affffde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null

前端 未结 2 1790
故里飘歌
故里飘歌 2021-02-19 07:55

I\'m not sure how I have got myself into this mess. But I am running into error: object 15abe3affffde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null w

相关标签:
2条回答
  • 2021-02-19 08:34

    Try cloning the github repo (bare) to another local directory. Then add this as a remote and try to push to that remote. If this fails, then your problem is probably local. (This would be my guess)

    If not, I would still try to clone your "working repo" and try pushing from that clone to the local remote you added previously.

    If this doesn't help, you either have rename/backup your github repo and create a new one or have to contact the github support.

    0 讨论(0)
  • 2021-02-19 08:39

    I was able to finally solve this issue. Here is what I did to solve it:

    In article https://help.github.com/articles/remove-sensitive-data there is a heading for Purge the file from your repo. I following their example for removing the Rakefile but used the problematic folder instead:

    git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch modules/sudo' --prune-empty --tag-name-filter cat -- --all

    Since the problematic tree was a folder I added -r to the command. The result was a cleanup of all the commits for the sudo modiles and thus, object 15abe3affffde5ad5f7d25e8f0f220d2e9faf3cb22 disappeared! After a commit of the changes, the push was successful. I was able to later re-add the broken module without issue.

    0 讨论(0)
提交回复
热议问题