How to permanently remove files from git and rewrite your git history

preview_player
Показать описание
In this video I will run through how to permanently delete files and rewrite your git history using two methods. The git reset command for simple scenarios and using the BFG repo cleaner for more complicated real-world examples.

Link to BFG Repo Cleaner
Рекомендации по теме
Комментарии
Автор

I've been programming professionally for a good 5 years and I've never dealt with a more ridiculous and frustrating situation.

alexanderbarrera
Автор

This is no safe method. The history still remains on the server. Even if it does not show you, it can technically still be found. GitGuardian will tell you. He does not show you in this video...

brian
Автор

Handy and thank you. But you need a JDK which on my old mac was not easily possible. Crazy! Git should have something inbuilt to handle this better.

cambsdigital
Автор

what about multiple branches, do we need to do it for all the branches ?

KrishanChhimpa-lm
Автор

I've been stuck at this for a 1 day and a half and solved it thanks to your video. Thanks!

glrbrasil
Автор

This video helps me alot, i have been stucked at this for two weeks. thank you

esdraswite
Автор

I tried 10, 000 other solutions, followed guides, all of it...nothing worked until I found this. Thank you so much

alowe
Автор

Sir, how to delete hidden files from the research gate?

sujatha
Автор

Thanks a lot for sharing this useful tool. Spent a few hours on finding the solutions, but not found anything, then I found this video and it worked. So nice. Saved almost 8GB after using this method.

learnflying
Автор

You're a lifesaver, luckily I was using Firebase which according to their docs doesn't really care if you commit the api key info because they have more security rules which reject unauthorized http requests. However still not great because I haven't fully looked into the ins and outs of how they work. Anyways now I have a new key and my repositories history has been purged.

SpooningTreesap
Автор

I am very grateful for your detailed informative explanations you explained everything very clearly.

victorejiofor
Автор

You saved me my guardian. Thank you so much

brkhnzn
Автор

Thanks, it was a really great support. The way step by step you have explained was indeed remarkable. I was fighting for this problem for the past 4 days and ultimately today got it done within a few minutes

tima
Автор

Great video. Will this works for merge request too? The issue we’re running into is that GitLab merge requests are read-only and therefore can’t be updated, so the push to the merge request refs is rejected, meaning secrets persist in the merge requests.

maxinitin
Автор

thanks for such a lovely helpful video.

bikashkarmokar
Автор

Got a sensitive file for MongoDB. That was a relief. Thanks!

LeonardLuzon
Автор

Doing this at scale is pretty scary. What would be a good recommendation for keeping config/environement files? Keep in mind, any one of a couple dozen people, located on the other side of the world to one another. Anyone may need to alter any one of them at any time. 3rd party, this or that?

matt-g-recovers
Автор

How do i fix i used git clean -f and it removed filés in my directory as well

Tt-wmze
Автор

00:06
oh geez, an intro? This is going to be long and painful

sabertoothwallaby
Автор

It didn't really work for me. Perhaps you could mention something about 'dirty' content

Norfeldt