TobKra96 / music_led_strip_control

Audio visualization for LED strips in real-time with web interface on a raspberry pi.
https://tobkra96.github.io/music_led_strip_control/
MIT License
298 stars 64 forks source link

Optimize repository size #61

Closed Teraskull closed 3 years ago

Teraskull commented 3 years ago

This PR contains the following changes:

I have no idea if we will be able to merge this without problems, it's the first time I am using a git history cleaner. But it is worth it since the repo size is now around 35mb instead of the previous 140mb.

I also tested everything, didn't get any issues after removing most libraries.

TobKra96 commented 3 years ago

This doesn't seem to be right. It looks like, the PR tries to commit all existing commits again. If I try to merge it, the repository won't reset, it will try to add all the commits. What do you mean?

Teraskull commented 3 years ago

Hm, I was hoping it will force override the old commits. Can you try experimenting with it? Try deleting everything in your repo and then manually copying my repo and force pushing. There is no other way to remove the commits with unused libraries.

TobKra96 commented 3 years ago

Ok, I will start with the experiments tomorrow.

TobKra96 commented 3 years ago

Hi, can you check https://github.com/TobKra96/music_led_strip_control/tree/clean_git_history

I created a new branch with the git checkout --orphan <name_you_choose_for_orphan_branch> command. Merged your master into it and commit it.

I will replace the master with this branch if everything is good.

Teraskull commented 3 years ago

Good idea, I should have used branches before, to make sure master is stable.

TobKra96 commented 3 years ago

Do you think the changes are stable? Or should we work with the clean_git_history branch until it is stable and replace the master with it? So you can try to make a pull request to the clean_git_history branch?

Teraskull commented 3 years ago

I believe these changes are stable enough. You can replace master, but don't delete it , just rename. After this PR we will work on the clean_git_history branch.

TobKra96 commented 3 years ago

Ok, I will replace the baster with the clean_git_history and start a new branch called dev_2.1 for our new changes/bugfixes. You can do pull requests on this branch. If it is stable, we can merge it to the master.

Teraskull commented 3 years ago

good, you can proceed.

TobKra96 commented 3 years ago

master renamed to master_old. clean_git_history renamed to master. master set to default. dev_2.1 created from master.

Teraskull commented 3 years ago

Great, can you pull my last commits to master before I can switch to dev_2.1?

TobKra96 commented 3 years ago

Done. Everything is merged and up to date.