this post was submitted on 28 Aug 2024
522 points (96.9% liked)

Programmer Humor

32190 readers
386 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] cyborganism@lemmy.ca 39 points 1 month ago (22 children)

You need to merge more often.

Rebase. That's where the real trauma is.

[–] zalgotext@sh.itjust.works 24 points 1 month ago (19 children)

Neither rebasing nor merging should cause trauma if everyone on the team takes a day or two to understand git

[–] cyborganism@lemmy.ca 11 points 1 month ago (15 children)

I consider myself above average in terms of Git know how. But I've come across situations using rebase where you're stuck resolving the same conflicts over several commits.

I still don't understand that part quite well.

This doesn't happen when you do a normal merge though. Making it easier to manage

[–] furikuri@programming.dev 5 points 1 month ago* (last edited 1 month ago) (1 children)

You could try making enabling git's rerere functionality, which stands for "reuse recorded resolution"

https://git-scm.com/book/en/v2/Git-Tools-Rerere

https://stackoverflow.com/a/49501436

[–] cyborganism@lemmy.ca 1 points 1 month ago

Yeah I saw someone else's answer and I totally learned something new today.

load more comments (13 replies)
load more comments (16 replies)
load more comments (18 replies)