How To Remove GIT History And Make Your Repo Smaller

preview_player
Показать описание
In this video I'll go over the steps you need to take to shrink down your repo and only leave the latest iteration up. One thing I didn't mention is that you should also manually check for large files that are in the latest commit that can be remove, but that is somewhat an aside and not everyone will need to do that.

Join this channel to help support future productions:
---
---
Resources:
---
Written, Edited, & Produced By:
Matt Early
---
Matt's Other Stuff (in case you want to find me or interact or support or whatever):
Patrons help this channel go round and keep creating. If you don't like patreon but still would like to support regularly, you can do a similar subscription via the YouTube Join, or through Github's sponsor button.

This is were I most the majority of the code seen on the channel.

We have a Discord! We welcome all various code and tech chatter.

I stream code and/or gaming every Thursday! I also randomly stream a time or two throughout most weeks.
Рекомендации по теме
Комментарии
Автор

This was really helpful. The only video that showed me exactly how to do what I wanted to keep only the latest commit and delete the full history. Thanks!

ujavalgandhi
Автор

Sir you have no idea that this tutorial of your has saved my life ❤❤😊😊

edisonmondal
Автор

Thank you for the video. I want to keep the last 20 commits for example. What should I do in this case?

rudinasubaih
Автор

Thank you man, this was really helpful !

zupacro
Автор

i have to do the same but my problem is i cant delete all the branches because other teams are working on them, it can be donde anyway and then i could suggest to them to do a rebase or something like that?

Thank you for the video also.

bulixss
Автор

very kind of you to share this info. thanks so much

Alex-rlgl
Автор

the repo i want to clone is not mine. how do i remove all the old commits and branches and all other bs.... without changing the original repo

thomasmcivor
Автор

if this is the way to clear the history, why not simply create another repository with latest head?

wuxianzhe
Автор

if u r losing each & every commit, then simply create a new repo instead

xade
Автор

7 minutes ffs you couldve made this a 3 minute video

thomasmcivor
Автор

Thank you man, this was really helpful !

ValdoSouza