Trippy Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MentalEdge@sopuli.xyz to Programmer Humor@lemmy.mlEnglish · 2 years ago

A classic

sopuli.xyz

message-square
37
fedilink
1.22K

A classic

sopuli.xyz

MentalEdge@sopuli.xyz to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
37
fedilink
  • divineslayer@lemmy.world
    link
    fedilink
    English
    arrow-up
    109
    ·
    2 years ago

    I feel like I often would prefer to get the merge conflict. So many times my coworkers will somehow mess up the code I committed when resolving the conflict.

    • charliespider@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      2 years 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
        link
        fedilink
        arrow-up
        7
        ·
        2 years 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
          link
          fedilink
          arrow-up
          4
          ·
          2 years ago

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

    • Alien Nathan Edward@lemm.ee
      link
      fedilink
      arrow-up
      18
      ·
      2 years ago

      This way I can wreck their shit instead! Enjoy debugging this one Tim, you obtuse bastard!

    • UndefinedIsNotAFunction@programming.dev
      link
      fedilink
      arrow-up
      10
      ·
      2 years ago

      Dear god yes. Please just let me deal with the conflict before the kids make it worse.

      • fer0n@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        !usernamechecksout@lemmy.zip

    • dis_honestfamiliar@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Inschools project, I once used the flag ours.

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      git push -f

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 275 users / day
  • 533 users / week
  • 1.83K users / month
  • 11.8K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.71K Posts
  • 37.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org