Aggressively optimise, takes more time

git gc

  • Optimise the local repository by cleaning unnecessary files.
    More information: <https://git-scm.com/docs/git-gc>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git gc --aggressive

click the source code to copy install git gc on any operating system with command-not-found.com