Тёмный

What is Git Rebase? (Animated) 

Boot dev
Подписаться 14 тыс.
Просмотров 7 тыс.
50% 1

Наука

Опубликовано:

 

14 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@lil_pharma
@lil_pharma Месяц назад
Should dive into more details about the negative consequences of merge commits. That’s what I use, as it is the standard on my team, but it rarely causes issues. I’m not opposed to rebase, I actually like it, but it seems that if you’re taking the “skill issue” approach, it goes both ways. If you can mess them both up, why should I actually consider switching?
@GabrielSouza-sz5ju
@GabrielSouza-sz5ju Месяц назад
Only difference between both that I notice is that with merge you'd lose the commit history since its all compressed down to a single commit
@dwilmer1980
@dwilmer1980 Месяц назад
​@@GabrielSouza-sz5ju No, you don't loose your commit history with merge. Only if you squash commits before merging. Anyway, rebase is the way to go if you want to maintain a nice readable git history.
@bootdotdev
@bootdotdev Месяц назад
Merge commits create a branching tree structure in the Git history, which is inherently much harder to understand and reason about than a linear history. While it is *possible* to break stuff with rebase, if you take the (not very long) to learn how to do it, the mistakes are totally avoidable. The reward for switching to rebase is that your projects history is much easier to work with and understand.
@user-if2kq8nh8m
@user-if2kq8nh8m Месяц назад
We do rebases but still use merge commits when merging merge requests as our CI workflow depends on merge commit info
@ruanpingshan
@ruanpingshan Месяц назад
Sure, it's a skill issue that I always get weird stuff happening when rebasing with conflicts (missing changes, duplicated commits). Merge conflicts are much easier to understand because both versions are the "latest" in their respective branches, so the resolved version becomes the new "latest" version of the file. But I get the impression that if a conflict occurs while rebasing, there are more future commits waiting to be applied to the "resolved" file.
@rafaelnegron_web
@rafaelnegron_web Месяц назад
Is this a sneak peek at the new Git course?
@robosergTV
@robosergTV Месяц назад
yes
@beeforbacon
@beeforbacon Месяц назад
😥
@gggrkm70
@gggrkm70 Месяц назад
I've watched. and continue to use merge.
@dwilmer1980
@dwilmer1980 Месяц назад
As he said. Skill issue. ;)
@f0ssig
@f0ssig Месяц назад
bootleg dev
Далее
10 useful git aliases
7:45
Просмотров 11 тыс.
Why you SHOULD deploy to the edge
12:06
Просмотров 53 тыс.
Игровой Комп с Авито за 4500р
01:00
Golang is OG?
5:16
Просмотров 5 тыс.
Web Scraping vs Web Crawling Explained
3:14
Просмотров 29 тыс.
What is Git? | Course Intro by ThePrimeagen
1:56
Просмотров 6 тыс.
My Initial Impresson Of Go
12:39
Просмотров 74 тыс.
Why Does Scrum Make Programmers HATE Coding?
16:14
Просмотров 496 тыс.
git rebase - Why, When & How to fix conflicts
9:45
Просмотров 30 тыс.
Node.js: The Documentary | An origin story
1:02:49
Просмотров 529 тыс.
Will the battery emit smoke if it rotates rapidly?
0:11