How to shrink the .git folder

后端 未结 7 2345
花落未央
花落未央 2020-12-02 04:16

My current base has a total size of approx. 200MB.

But my .git folder has an amazing size of 5GB (!). Since I push my work to an external server, i don\'t need any b

7条回答
  •  执笔经年
    2020-12-02 04:46

    I tried these but my repository was still very large. The problem was I had accidentally checked in some generated large files. After some searching I found a great tutorial which makes it easy to delete the large generated files. This tutorial allowed me to shrink my repository from 60 MB to < 1 MB.

    Steve Lorek, How to Shrink a Git Repository

提交回复
热议问题