Android: Remove APK from history

Created on 27 Feb 2017  Â·  13Comments  Â·  Source: nextcloud/android

APKs were built and put into this repository over time. I'd like to completely obliterate them from history as soon as @tobiasKaminsky changes the URLs and everything.

enhancement

Most helpful comment

Roughly 92 MB instead of 300+ MB now :) Enjoy!

Might need a new clone! cc @AndyScherzinger @tobiasKaminsky

All 13 comments

If I am not mistaken @tobiasKaminsky's scripts only do this for the beta within the beta branch, right Tobias? Or are we keeping any APKs for the builds via master somewhere?

Yes, he changed this, but there also APKs in the auto-upload-apk branch (had no other easy way to distribute APKs fast at that moment) which I'll completely obliterate once auto upload changes are done.

I have changed it now to the nc download server.
Let us wait for the next daily and if everything is working, you can clean the history.
(I do not know how to do this and I am afraid of doing it ;-) )

had no other easy way to distribute APKs fast at that moment

Just use your own nextcloud server and create a public share with password protection ;-)

This is not done yet, or?
Fresh checked out repo is 306Mb:

  • src 12Mb
  • all other < 1Mb
  • .git: 285Mb

Don't think so. Fresh checkout is extremely large regarding the git folder :(

Ah I will check.

git log --all --diff-filter=D --summary | grep delete | grep apk -i                                                                                                                1 ↵
 delete mode 100644 apks/nextcloud-beta-20170220.apk
 delete mode 100644 apks/nextcloud-beta-20170219.apk
 delete mode 100644 apks/nextcloud-beta-20161017.apk
 delete mode 100644 apks/nextcloud-beta-20161012.apk
 delete mode 100644 apks/nextcloud-beta-20161006.apk
 delete mode 100644 apks/nextcloud-beta-20160922.apk
 delete mode 100644 apks/nextcloud-beta-20160907.apk
 delete mode 100644 apks/nextcloud-beta-20160903.apk
 delete mode 100644 apks/nextcloud-beta-20160809.apk
 delete mode 100644 apks/nextcloud-beta-20160808.apk
 delete mode 100644 apks/nextcloud-beta-20160802.apk
 delete mode 100644 apks/nextcloud-beta-20160731.apk
 delete mode 100644 apks/nextcloud-beta-20160730.apk
 delete mode 100644 apks/nextcloud-beta-20160728.apk

But I doubt that this are all apks?

Having this cleanup gets quite important to me since when I am not at home but somewhere else I might end up with 100-200Kb/s so this takes forever :(

Doing it now.

:heart: Thank you oh so much @mario :+1: :+1: :+1: :+1:

Roughly 92 MB instead of 300+ MB now :) Enjoy!

Might need a new clone! cc @AndyScherzinger @tobiasKaminsky

New clone is fine with me :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobiasKaminsky picture tobiasKaminsky  Â·  3Comments

Bugsbane picture Bugsbane  Â·  3Comments

ezaquarii picture ezaquarii  Â·  3Comments

eppfel picture eppfel  Â·  3Comments

AndyScherzinger picture AndyScherzinger  Â·  3Comments