Git filter-branch says working tree is dirty when it is not

前端 未结 1 1014
时光取名叫无心
时光取名叫无心 2020-12-10 05:00

I\'m trying to rewrite my history in my git repository because I need to remove a file that contains restricted information.

This is what happens:

$          


        
相关标签:
1条回答
  • 2020-12-10 05:29

    This is mostly a guess, but the error may be caused by a bug that was fixed in git v1.7.7.1 (which was released after your original post). From the commit message:

    Filter-branch already requires that we have a clean work tree before starting. However, it failed to refresh the index before checking, which means it could be wrong in the case of stat-dirtiness.

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