1205
A classic (sopuli.xyz)
you are viewing a single comment's thread
view the rest of the comments
[-] charliespider@lemmy.world 32 points 1 year ago

Rebase all of your work branches onto HEAD so that conflicts require refactoring the first commit where things don't match up. This can make conflicts easier to deal with (in my humble opinion) since you deal with conflicts earlier in your commit history as opposed to at the end after ALL of your changes are made.

Plus a linear history is super nice to work with later on.

[-] dandroid@dandroid.app 7 points 1 year ago

I always squash my commits before rebasing. Is your way easier? I never really seem to have a problem with merge conflicts.

[-] charliespider@lemmy.world 4 points 1 year ago

We squash when merging. Final git history is super clean and linear.

this post was submitted on 26 Aug 2023
1205 points (98.4% liked)

Programmer Humor

32483 readers
528 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS