How can I clean my .git folder? Cleaned up my project directory, but .git is still massive

前端 未结 5 1491
滥情空心
滥情空心 2020-12-12 10:54

The .git/objects in my rails project directory is still massive, after deleting hundreds of Megabytes of accidentally generated garbage.

<
5条回答
  •  没有蜡笔的小新
    2020-12-12 11:32

    Sparkleshare created 13GB of tmp_pack_ files in my git after failing to pull many times a huge images checkin. The only thing that helped was ...

    rm -f .git/objects/*/tmp_*
    

    'git gc' did not remove those files.

提交回复
热议问题