Short: remove Large files from a git commit

preview_player
Показать описание
I goofed up, this is more for me to come back to this when I do it again next week 😆
Рекомендации по теме
Комментарии
Автор

I would use:

git reset --soft HEAD^2

then remove the file and recommit, but rebasing is also useful.

evolutionxbox
Автор

This is first time I ever used git rebase I acutely needed to find a way to do this and was just browsing twitter and saw your tweet 🤣. Great video glad to see your back with a video

SkyKosiner
Автор

still works like a charm in 2024, much thanks!

jonathann-gs
Автор

Git rebase doesn't delete the original commits that you squash. They still live in your storage. Eventually though, they will be garbage collected by git. I don't remember how long it stays on but maybe 1 month later?

magno
Автор

stack to this issue since yesterday and couldn't fix, looks like this might finaly work. Many thanks!

petrzajkas
Автор

My boss was just asking about this type of thing. Thanks Wes!

JeffSchaper
Автор

Cool trick Wes, thanks. One more reason to learn rebase more deeply. Btw, what is a cool autosuggestion tool for git you use?

rbereziuk
Автор

This was SUPER helpful, thanks. I should use git rebase more often.

gersonadr
Автор

annoyning issue, wish I'd seen your video sooner. New to git so tried different commands like refilter, reset and even tried pushing to a new repo but nothing worked.

musj.
Автор

thanks Wes, helped to remove the commits!

yuzaR-Data-Science
Автор

Hey 👋
Love from 🇮🇳 India
I have a question
How can I remove vs code syncing settings from my GitHub account

EternalCoders
Автор

Y not ‘git reset —hard origin branch-name’?

tdkiran
Автор

I had the same error with parcel caché xD
Thank you very much

marcxA
Автор

Great useful video, thanks.

What theme are you using for hyper?

pquirke
Автор

Wes Bos, I think the main problem here is you're using Twitter.

coolorphans
Автор

What if I'm not sure which commit has the large file ? Please help 🥺

soffi
Автор

What powers the intellisense in your terminal?

emaxix
Автор

GitHub sucks. All the help you find online reads basically like "Just follow these instructions written in mandarin chinese" if you only used the desktop app which apparently doesn't have a function to remove a large file you commit by accident? So you have to use the shittiest text editor ever and learn all these commands. Just dumb.

MrBeknacktoman