I have a web application and use git to not only manage source control but also deploy changes. I push the changes to the remote repo on github and my webserver has a webhook, which then updates according to these changes.
Now I noticed that my local git repository is around 9GB. I cloned the repo from github and notived that a even then my repo is roughly 1.5GB.
I am pretty sure most of this is unnecessary bloat from the initial development phase. I would like to get rid of it to free up disk space. I have googled a bit, but only find relatively complicated solutions. My scenario is one branch, one developer, lots of tiny commits.
Is there a simple way to get rid of changes that are older than i.e. 12 months, that will result in freeing-up space locally and remotely?
Thanks