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

前端 未结 2 1824
故里飘歌
故里飘歌 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: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.

提交回复
热议问题