Closed HenryC-3 closed 2 years ago
removed demo.gif
from git history, this should be a lot better now.
I tested the latest repo and found out the size still remains 48M.
I suggest following the guide at BFG Repo-Cleaner by rtyley to clean up those big files, or you can follow steps below
# remove file size larger than 10M
java -jar bfg.jar --strip-blobs-bigger-than 10M smart-splits.nvim/.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive;
final size
❯ du -h .
4.0K ./plugin
24K ./lua/smart-splits
24K ./lua
64K ./.git/objects/pack
12K ./.git/objects/info
84K ./.git/objects
8.0K ./.git/info
0B ./.git/logs/refs/heads
0B ./.git/logs/refs/remotes/origin
0B ./.git/logs/refs/remotes
0B ./.git/logs/refs
0B ./.git/logs
60K ./.git/hooks
0B ./.git/refs/heads
0B ./.git/refs/tags
4.0K ./.git/refs/remotes/origin
4.0K ./.git/refs/remotes
4.0K ./.git/refs
176K ./.git
220K .
did you do a fresh clone? the whole repo is 176k for me now.
Does fresh clone just means use git clone
again? If so, yes, here's my git clone output
git clone git@github.com:mrjones2014/smart-splits.nvim.git
Cloning into 'smart-splits.nvim'...
remote: Enumerating objects: 423, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 423 (delta 51), reused 157 (delta 51), pack-reused 266
Receiving objects: 100% (423/423), 47.32 MiB | 3.67 MiB/s, done.
Resolving deltas: 100% (154/154), done.
it's 168K for me when installed via packer 🤔
It would be better to remove those big files from the previous commit.
I discover this due to my poor network speed 😂.
Steps to reproduce
run
du -h smart-splits.nvim/