Managing .git file size

前端 未结 4 1874
时光取名叫无心
时光取名叫无心 2020-12-14 12:10

My .git file has grown to 229Mb and I wondering what the best way to cut down the size is. I know about git gc and have been using it a fair amount. I\'m not totally sure

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 12:50

    The easiest would be to do a

    git clone --depth 1 your_old_repo
    

    on a new location and then swap it back in place.

    see also git faq

提交回复
热议问题