gandalf icon indicating copy to clipboard operation
gandalf copied to clipboard

Shrink the repo

Open ann0see opened this issue 7 years ago • 9 comments

Maybe my old issue got deleted... So: Look here: http://stevelorek.com/how-to-shrink-a-git-repository.html You know it's dangerous. Backup your repo via git pull & move it to an other e.g. HDD / Stick before doing such a big thing. Don't do it now: gandalf.app is crashing (maybe get older gandalf.app)

ann0see avatar May 06 '17 06:05 ann0see

But I'm not the only one ;-)

ann0see avatar May 06 '17 06:05 ann0see

The only plausible way is recreating the repo actually.

1Conan avatar May 06 '17 09:05 1Conan

I think there's a way. Version control, at this point, is working against us. We've rearranged so much, renamed so much, etc. There's a thousand versions of everything.

EthanRDoesMC avatar May 06 '17 16:05 EthanRDoesMC

There is way to shrink the repo. But the safest way imho is recreating it.

1Conan avatar May 06 '17 21:05 1Conan

@EthanRDoesMC Look here: https://github.com/ann0see/Gandalf4Cydia Cloned my branch, deleted .git folder, made a new git repo and uploaded it. It's much smaller. But around 200 MB. It's because the app is "so big"

ann0see avatar May 21 '17 06:05 ann0see

We should include a .gitignore with blocks the upload of .debs in Gandalf/*.deb I think the main "problem" is that the app was and now is not very small. Now after every commit the .debs will be recreated & saved via git-> every commit ~ 20 MB ? more

ann0see avatar Jun 15 '17 14:06 ann0see

Some dirty options: https://gist.github.com/weijianwen/d58b8a465f4a47431096 https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html https://stackoverflow.com/questions/33110114/how-to-shrink-git-repo-and-better-manage-large-files

I don't know if Ethan could make a fresh clone, delete the .git folder, delete the repo on GitHub, re init the repo via commandline, recreate repo on GitHub & repush. -> @1Conan 's comment. We all must delete all our forks and our local clones, and we should inform /r/jailbrea, ah yes: we must make sure, that everything works and we should discuss all issues + PR's

ann0see avatar Jun 15 '17 15:06 ann0see

That's my plan actually. It's a nice way to tie up the long-awaited refurbishment I finally got around to starting.

EthanRDoesMC avatar Jun 21 '17 03:06 EthanRDoesMC

We could use BFG: https://rtyley.github.io/bfg-repo-cleaner/ here. But I don't think anybody cares anymore...

ann0see avatar Jan 30 '21 20:01 ann0see