Method to delete commits for reducing repository size

后端 未结 2 1846
名媛妹妹
名媛妹妹 2021-01-25 05:55

I am using a git repository to deliver .jar files to a client. If I don\'t delete the old commits, the repository size gets bigger and eventually, Bitbucket disable

2条回答
  •  时光取名叫无心
    2021-01-25 06:15

    When you use git push -f the last commit is no longer referenced, but is not deleted. Eventually git will garbage collect orphaned data to save some space.

    If you use Bitbucket Cloud, you can contact Support to run a git gc to free some space.

    Bitbucket documentation provide advices to reduce repository size : https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html

提交回复
热议问题