▲ 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
[+] aniki@lemm.ee -2 points 2 years ago (3 children) [deleted] permalink fedilink source parent hideshow 3 child comments replies: [–] jjjalljs@ttrpg.network 4 points 2 years ago If I get a big conflict and I know my change is trivial, I feel perfectly okay doing git fetch git reset --hard whatever and then reapplying my simple change as a new commit. Sort of a bootleg rebate. permalink fedilink source parent [–] erogenouswarzone@lemmy.ml 2 points 2 years ago I hear what you're saying. First, I hard disagree with you. Overwriting my local version of code is a parachute - not an ideal landing, but better than merging by hand. Also, my comment was not an attempt to teach everything about git, just to explain what is happening in simple terms, since git requires a lot of experience to understand what those messages mean. permalink fedilink source parent [–] zalgotext@sh.itjust.works 1 point 2 years ago If you use a squash workflow, you're going to be force pushing a ton. Never force git to do anything. If you're forcing something you're doing it wrong. This is bad advice. Better advice would be "know and understand your tool, and know the consequences of your actions". permalink fedilink source parent
[–] jjjalljs@ttrpg.network 4 points 2 years ago If I get a big conflict and I know my change is trivial, I feel perfectly okay doing git fetch git reset --hard whatever and then reapplying my simple change as a new commit. Sort of a bootleg rebate. permalink fedilink source parent
[–] erogenouswarzone@lemmy.ml 2 points 2 years ago I hear what you're saying. First, I hard disagree with you. Overwriting my local version of code is a parachute - not an ideal landing, but better than merging by hand. Also, my comment was not an attempt to teach everything about git, just to explain what is happening in simple terms, since git requires a lot of experience to understand what those messages mean. permalink fedilink source parent
[–] zalgotext@sh.itjust.works 1 point 2 years ago If you use a squash workflow, you're going to be force pushing a ton. Never force git to do anything. If you're forcing something you're doing it wrong. This is bad advice. Better advice would be "know and understand your tool, and know the consequences of your actions". permalink fedilink source parent