Click here to Skip to main content
15,919,245 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Are there good techniques when manually merging code ? Pin
jschell21-May-24 12:33
jschell21-May-24 12:33 
GeneralRe: Are there good techniques when manually merging code ? Pin
charlieg21-May-24 23:14
charlieg21-May-24 23:14 
GeneralRe: Are there good techniques when manually merging code ? Pin
StarNamer@work22-May-24 3:31
professionalStarNamer@work22-May-24 3:31 
GeneralRe: Are there good techniques when manually merging code ? Pin
charlieg22-May-24 8:03
charlieg22-May-24 8:03 
GeneralRe: Are there good techniques when manually merging code ? Pin
jschell23-May-24 13:13
jschell23-May-24 13:13 
GeneralRe: Are there good techniques when manually merging code ? Pin
Nelek22-May-24 6:35
protectorNelek22-May-24 6:35 
GeneralRe: Are there good techniques when manually merging code ? Pin
Jef fJacobson22-May-24 7:15
Jef fJacobson22-May-24 7:15 
GeneralRe: Are there good techniques when manually merging code ? Pin
ShawnVN22-May-24 10:12
ShawnVN22-May-24 10:12 
One advanced technique -- maybe overkill for your scenario but sometimes necessary.. I had to do this recently -- use a tool like Araxis Merge to do a three-way diff/merge (compare 2 branches against a common ancestor).

1- use `git merge-base BranchA BranchB` to find common ancestor .. create a new branch BranchC off that commit

2- clone/checkout BranchA and BranchB in separate subdirectories

3- launch a three-way merge: A(left), C(center), B(right) .. manually merge stuff to BranchC

4- commit BranchC .. then merge those changes back up to BranchA and BranchB

this will lose some commit-history from incremental changes in BranchA and BranchB.. vs cherry-picking from A to B then merging back to A

but if those branches were messy and conflicting, then that commit-history might have been unintelligible anyway
GeneralRe: Are there good techniques when manually merging code ? Pin
MSBassSinger23-May-24 3:11
professionalMSBassSinger23-May-24 3:11 
GeneralThis just happened at lunch. Pin
raddevus21-May-24 7:58
mvaraddevus21-May-24 7:58 
GeneralRe: This just happened at lunch. Pin
Dave Kreskowiak21-May-24 10:11
mveDave Kreskowiak21-May-24 10:11 
GeneralRe: This just happened at lunch. Pin
Peter_in_278021-May-24 12:25
professionalPeter_in_278021-May-24 12:25 
GeneralRe: This just happened at lunch. Pin
raddevus21-May-24 16:16
mvaraddevus21-May-24 16:16 
GeneralRe: This just happened at lunch. Pin
11917640 Member 21-May-24 20:44
11917640 Member 21-May-24 20:44 
GeneralRe: This just happened at lunch. Pin
jschell21-May-24 12:35
jschell21-May-24 12:35 
GeneralRe: This just happened at lunch. Pin
raddevus21-May-24 16:18
mvaraddevus21-May-24 16:18 
GeneralRe: This just happened at lunch. Pin
haughtonomous21-May-24 21:52
haughtonomous21-May-24 21:52 
GeneralRe: This just happened at lunch. Pin
jschell23-May-24 13:12
jschell23-May-24 13:12 
GeneralRe: This just happened at lunch. Pin
raddevus24-May-24 2:27
mvaraddevus24-May-24 2:27 
GeneralRe: This just happened at lunch. Pin
Sander Rossel21-May-24 22:22
professionalSander Rossel21-May-24 22:22 
GeneralRe: This just happened at lunch. Pin
trønderen21-May-24 23:23
trønderen21-May-24 23:23 
GeneralRe: This just happened at lunch. Pin
Alister Morton22-May-24 0:31
Alister Morton22-May-24 0:31 
GeneralRe: This just happened at lunch. Pin
David Crow22-May-24 2:25
David Crow22-May-24 2:25 
GeneralRe: This just happened at lunch. Pin
Choroid22-May-24 7:19
Choroid22-May-24 7:19 
GeneralRe: This just happened at lunch. Pin
raddevus22-May-24 7:47
mvaraddevus22-May-24 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.