I’m using GitHub Desktop and git.exe for my repo and am running into an issue.
Over time the local repos folder bloats out to over 500MB for a remote repo that is under 11MB.
I have a PowerShell script that runs the following commands:
clean -f checkout --orphan TEMP_BRANCH add -A commit -am "Initial Commit" branch -D master branch -m master push -f origin master
I’m trying to get it to:
- retain the latest commit only
- delete all old history and old files
- clean the .git folder
for both remote and local.