▲ 1276 ▼ I'm going to sit down and actually learn git this week (midwest.social) submitted 2 years ago by seahorse@midwest.social to c/programmerhumor@lemmy.ml 82 comments fedilink hide all child comments
[–] cupcakezealot@lemmy.blahaj.zone 36 points 2 years ago (3 children) lemme rebase the main branch onto my branch. two minutes later 1 merge conflict of 57 [abort] [continue] permalink fedilink source hideshow 3 child comments replies: [–] affiliate@lemmy.world 13 points 2 years ago (1 child) this is easily fixed by copy pasting the files into a new directory and never opening git again out of fear permalink fedilink source parent hideshow 1 child comment replies: [–] caseyweederman@lemmy.ca 12 points 2 years ago Project managers hate this one weird trick! permalink fedilink source parent [–] kamen@lemmy.world 7 points 2 years ago One key thing that can help you wrap your head around rebasing is that branches get switched while you're doing it; so, say you're on branch feature and do git rebase master, for any merge conflict, whatever's marked "current" will be on master and what's "incoming" is from feature. There's also git rerere that should in theory remember a resolution you do between two branches and reuse it every time after the first; I've rarely used it in practice; it would happen for long lived branches that don't get merged. permalink fedilink source parent
[–] affiliate@lemmy.world 13 points 2 years ago (1 child) this is easily fixed by copy pasting the files into a new directory and never opening git again out of fear permalink fedilink source parent hideshow 1 child comment replies: [–] caseyweederman@lemmy.ca 12 points 2 years ago Project managers hate this one weird trick! permalink fedilink source parent
[–] caseyweederman@lemmy.ca 12 points 2 years ago Project managers hate this one weird trick! permalink fedilink source parent
[–] kamen@lemmy.world 7 points 2 years ago One key thing that can help you wrap your head around rebasing is that branches get switched while you're doing it; so, say you're on branch feature and do git rebase master, for any merge conflict, whatever's marked "current" will be on master and what's "incoming" is from feature. There's also git rerere that should in theory remember a resolution you do between two branches and reuse it every time after the first; I've rarely used it in practice; it would happen for long lived branches that don't get merged. permalink fedilink source parent