What is Git Rebase? [Intermediate Git Tutorial]

preview_player
Показать описание
This intermediate Git tutorial video will answer the question of what is Git rebase and will show you how to rewrite commit history using the Git rebase command. Learn how to use rebase to merge changes from one branch to another, and see step-by-step how to rebase in the terminal before comparing the experience with the GitKraken Git client.

#git #learngit #gitrebase #gitkraken #gitclient #gitgui #programming
Рекомендации по теме
Комментарии
Автор

Am i the only one who thinks it sounds like I'm getting a tutorial from Ryan Reynolds? Hollywood star paying their community back in git knowledge 👍 respeca

jord
Автор

"it's much easier to read the commits" ... is it tho? IMO looking where the commit is coming from and where is merging into is SOOOO much better.
And if you think merge strategy it makes a "spaghetti" graph. You can solo a branch, looking even better with just you really need to see :)

Nice tutorial btw.

DanielMescoloto
Автор

Hey, real sorry, maybe it is just me, but what is supposed to be the source branch and what is supposed to be the destination branch are a bit unclear to me.

The way I read what you did is that you rebased 'feature' on to 'dev'. Is that correct?

karlwschipul
Автор

What is the difference between merge and rebase? There are all commits from other branches on a rebased branch. I thought it will be compressed into one commit all other commits.

Gorky
Автор

After git rebase, you are still on feature branch? Is there a way that you can sit on the main branch after the rebase?

qeetcode
Автор

thank you, very much this helped a lot learning about git rebase

bchillpro
Автор

question what are the steps for doing instead git pull --rebase origin master, what I dont get is if I should already have commits on my featured branch or not, sorry I am still new at this. thanks a lot.

JaimeHernandez-hxxe
Автор

git rebase [branch]

apply any commits of the current branch ahead of a specified one

istwishmeister
Автор

Your target branch is dev? You're rebasing onto dev?

Unless I'm missing something, it seems like you're rebasing onto feature.

Assuming I'm not missing something, I speculate your (mis)use of the word target is confusing your brain. "Target" applies to the feature branch. dev would more accurately be called the "source" branch, or functionally a "trunk" for more old-school developers.

relativityboy
Автор

Everything you've described is backwards... You haven't altered the DEV branch! You make it sound like the FEATURE branch has been added to the DEV branch!

johnnyw
Автор

What you are saying makes no sense. It looks like you are checkout on feature branch, and you are pulling commits from dev to feature, this you are not rebasing anything onto dev. Unless gui is compleatly confusing and unreadable...

MrSandshadow
Автор

Git is so bad, always give errors when try to push your code, for me is harder to understand that code itself

starbuck
Автор

Git is horrible, dont let me make push, not make pull, i made git reset hard and wiped all my changes, why people use this rubb..

starbuck