Git Merge vs Git Rebase

Git Merge vs Git Rebase

Andrew Courter

1 год назад

2,476 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrew Courter
Andrew Courter - 05.03.2023 04:18

It was brought up that git storing "diffs" is incorrect. Git stores a stream of snapshots and other VCSs store diffs between files. Git will not save anything for files that didn't change and only stores these snapshot references. Sorry for any confusion!

Ответить
krzyczak
krzyczak - 17.06.2023 00:48

I'd argue that you should always rebase all your branches on master before merging, but then merge with --no-fast-forward to have the merge commits. This way you still have clean history but see the merged PRs/branches.

Ответить
Peter Henry
Peter Henry - 23.03.2023 22:03

Whoa?! You had to do a rebase from bugfix....then move over to main to merge? Huh? The pic on the right looks like the code was updated...but then you had to change branches and do the merge....what looks like....again. I'm a bit confused sorry. Doesn't the rebase do that already? If it doesn't, couldn't you just do a merge from Main, and get the exact same results?

Ответить
Emmanuel Villarreal
Emmanuel Villarreal - 21.03.2023 16:52

Thanks for clearing up the Git merge conflict text. Currently trying to get enrolled into app academy.

Ответить
nick@reaper
nick@reaper - 19.03.2023 12:17

👍👌

Ответить
gwaptiva
gwaptiva - 08.03.2023 16:26

Git obviously been named for Linus Torvalds as well....

Ответить
Jan Kowalski
Jan Kowalski - 07.03.2023 01:54

Nice explanation. First minutes about git history are unnecessary - you are answering a specific question.

Ответить
Henri-Philippe Marceau
Henri-Philippe Marceau - 05.03.2023 00:52

Uhhhhh, git keeps a full blob for every version of every file and they all get downloaded onto your machine when you clone a repo.

Ответить
DroopFPV
DroopFPV - 04.03.2023 21:58

Great explanations! Just one tiny thing, C2 single quote, is known as C2 prime. The single quote is a notation called 'prime'! Hope this helps a bit :)

Ответить
Envius
Envius - 04.03.2023 02:59

Really great explanation Andrew! That tool looks really useful, definitely going to play around with it.

Ответить
Andrew Courter
Andrew Courter - 03.03.2023 22:25

Do you use Git Merge or Git Rebase more often?

Ответить