Created
January 24, 2018 13:43
-
-
Save lacostej/3917d2c278f9af4d6817f4b1b4953f6f to your computer and use it in GitHub Desktop.
Force pruning of a bitbucket repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bitbucket reposize not the same as you see locally? | |
# run this once in a while to force GC on your bitbucket repo. | |
# run it BEFORE you reach your 2G limit of course. | |
# see https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html#Reducerepositorysize-Removetherepositorylimitation | |
git pull | |
touch bitbucket_should_prune_automatically | |
git add bitbucket_should_prune_automatically | |
git commit -m "But we need to force it by doing weird stuff" | |
git push | |
git reset --hard HEAD^1 | |
git push -f | |
echo "Check your bitbucket repo size" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The windows equivalent