So what's the difference between 'git merge' and 'git rebase'?

preview_player
Показать описание
Someone told you that you should use "rebase" rather than "merge"? Not sure what we are talking about? Let's explore the difference.

Also, if you wanna learn more about Git, I've created a 30min course that gives you all you need to successfully work with it on a day to day basis:

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

Thank you Juri, you just changed the way I visualize branches...I feel like a new man ..Thanks

temiloluwaawoyele
Автор

Awesome video and the best explanation I've seen on rebase so far. Other tutorials simply stated that rebasing onto master will cause master to have the same commit history, without specifying that a merge, or another rebase was necessary. Your explanation was clear, well-illustrated and straight to the point. You rock!

praisedare
Автор

Thanks. What if after the rebase, master has updated again plus more work has committed to the feature branch. Do you need to do another rebase master? Thank you

markchai
Автор

So when you 'git rebase' you actually change branch ? you were on myFeat and after rebase, you are on master ?

fabiodelorenzo