Stop doing this in Git!

Опубликовано: 06 Март 2023
на канале: Dan Clarke
958
32

If you're working off a shared main branch in Git - then blindingly pulling and pushing can really mess up the history, for no reason. Creating permanent (and mis-leading) merge commits in the history - where the branch divergence only occurred locally.

I see this a lot where developers use Git, but haven't taken the time to probably understand it, and concepts like rebasing.

In this video - I explain the problem and its symptoms - and also demo doing it both the wrong way, and also the right way.