How to squash and rebase in git

preview_player
Показать описание
Git rebase is a handy tool to have for creating nice clean history in your git repository. Come on in to see how it works and how it can help you clean up your commit history.

Level Up

Data Structures & Algorithms

Level Up AutoLayout

Level Up in Swift

Twitter
@jrasmusson
Рекомендации по теме
Комментарии
Автор

Thank you!!! A lot of people say ":wq", but they didn't mention press "esc" before that !!!! That's why I found your video!
Save my day!

limonatamber
Автор

ngl, the only video that actually helped me understand squash, and taught me how to use it

fiendgrin
Автор

Happy to see howard from better call saul is doing good and switched careers to software engineering .

emjselg
Автор

And once again your video helped me a lot …. I was struggling with this editor and now I know how to deal with it:)
Thanks again 🍺🍺

romancebula
Автор

Awesome video man! Definitely going to start using this!

GorillaDev
Автор

Superb, in a short video, I learned a lot ;)

DebugWithAdam
Автор

Good and simple tutorial. Thanks Jonathan

andonidasilvaotero
Автор

Use the fixup option if you don't want the commit messages for the commits you're squashing

rachelemsley
Автор

Nice One... Please Do video on difference between merge and rebase

lokeshios
Автор

Thanks for the handy commands Jonathan. Would be great if you could make a video about mirror a huge git repo. Let's say we have a huge git log history, as well the source code size. But new repository has a size limitation. So, what I would like to do, push only last a few commits to the new repo. I'll keep my original repo in origin, but mirror the new repo for less commits. 

I just noticed that whenever I want to sync repos, do I have to take care of push commit (always commit after the last commit). I assume this command will push whole history `git push mirror master`

Or what is the best practice to reduce the size of log history (one way is squash yes but doing that will also take time), also in the past accidentally they have submitted SDKs source codes into the repo where it is root cause of the huge size...

Автор

So you're not supposed to use --force ?! ...

swoleavocado