Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 3 months ago

When you screw up git

lemmy.zip

message-square
43
link
fedilink
528

When you screw up git

lemmy.zip

cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 3 months ago
message-square
43
link
fedilink
alert-triangle
You must log in or # to comment.
  • Cevilia (she/they/…)
    link
    fedilink
    English
    arrow-up
    82
    ·
    3 months ago

    Holy fuck, that’s a long phone number

    • √𝛂𝛋𝛆@piefed.world
      link
      fedilink
      English
      arrow-up
      53
      ·
      3 months ago

      It is a duplicated repeating error because this clownshow of a website is managed by squirrels and ducks. 1-800-273-8255 would be a valid US number. Doubling 273-8255 is not, but probably vibe coded under management that should be purged by these results.

      • Whostosay@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        3 months ago

        Why not 1800-SUICIDE?

        • √𝛂𝛋𝛆@piefed.world
          link
          fedilink
          English
          arrow-up
          11
          ·
          3 months ago

          intentions unclear. Am I calling For or Against

          • Whostosay@sh.itjust.works
            link
            fedilink
            arrow-up
            8
            ·
            3 months ago

            Your call.

            Buh dun tissss

        • locuester@lemmy.zip
          link
          fedilink
          English
          arrow-up
          4
          ·
          3 months ago

          It’s 1-800-APE-TALK

          • Whostosay@sh.itjust.works
            link
            fedilink
            arrow-up
            4
            ·
            3 months ago

            Lmao not willing to do the phone math rn, does that actually fit the numbers?

            • locuester@lemmy.zip
              link
              fedilink
              English
              arrow-up
              2
              ·
              3 months ago

              Yes.

              • Whostosay@sh.itjust.works
                link
                fedilink
                arrow-up
                3
                ·
                3 months ago

                That could be platformed.

                WAIT YOU HAVE SO MUCH TO LIVE FOR, have you tried ape talk?

                Well, I can’t say that I have.

      • GreenShimada@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Hey! Don’t insult ducks like that! This clownshow website would be about 20% better if ducks were involved.

        • √𝛂𝛋𝛆@piefed.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          I don’t know. I was cursing at ducks an hour ago while trying to remember how to spell diatomaceous earth and the ducks were total fuckwits.

    • Catoblepas@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      34
      ·
      3 months ago

      Well, that’s easy to remember! 0118, 999, 881, 999, 119, 725…3.

      • fedditter@feddit.org
        link
        fedilink
        arrow-up
        17
        ·
        3 months ago

        Did you see that ludicrious display last night??

        • OpenStars@piefed.social
          link
          fedilink
          English
          arrow-up
          12
          ·
          3 months ago

          Yes I did. Just put it over there with the rest of the fire.

          • kambusha@sh.itjust.works
            link
            fedilink
            arrow-up
            5
            ·
            3 months ago

            Your name is Morris Moss, is it not?

            • fedditter@feddit.org
              link
              fedilink
              arrow-up
              2
              ·
              3 months ago

              Your name is Morris Moss, is it not?

              • fedditter@feddit.org
                link
                fedilink
                arrow-up
                2
                ·
                3 months ago

                It is not.

      • serpineslair@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        The irony is, I remember it perfectly.

    • guillem@aussie.zone
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      deleted by creator

  • jaschop@awful.systems
    link
    fedilink
    arrow-up
    24
    ·
    3 months ago

    It’s never too late to git merge --abort!

    • TheFriendlyDickhead@feddit.org
      link
      fedilink
      arrow-up
      20
      ·
      3 months ago

      But abortion is murder?!?!?!?!?

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        7
        ·
        3 months ago

        🎶 every branch is sacred 🎶

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    18
    ·
    3 months ago
    git reset --hard <commit-hash>  
    git push -f origin main  
    

    i didn’t see anything, officer

    • martinb@lemmy.sdf.org
      link
      fedilink
      arrow-up
      11
      ·
      3 months ago

      You should be forcibly kept away from production systems…

      • unalivejoy@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Never use --force. Always use --force-with-lease.

        • enbiousenvy
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 months ago

          I’ve mistyped that a couple of times to be --force-with-leash

          • unalivejoy@lemmy.zip
            link
            fedilink
            arrow-up
            4
            ·
            3 months ago

            git push origin master --force-with-leash

            Don’t do that to your master.

          • katy ✨@piefed.blahaj.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 months ago

            only do that in puppygit (with consent)

            • enbiousenvy
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 months ago

              TIL thats a real thing https://github.com/catpuppyapp/PuppyGit

  • kubica@fedia.io
    link
    fedilink
    arrow-up
    11
    ·
    3 months ago

    git out --never-come-back

  • Anafabula@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    3 months ago

    Jujutsu (which is compatible with git) has a nice conflict resolution flow that doesn’t break you workflow.

    Conflicts are encoded into the commits, so that there is never a weird in between state that you have to deal with immediately before being able to do anything else.
    Then you can use Jujutsu’s easier history manipulation to resolve the conflict in the conflicted commits.

    https://steveklabnik.github.io/jujutsu-tutorial/branching-merging-and-conflicts/conflicts.html

    And you could always jj undo if you did something you didn’t want to.

  • peoplebeproblems@midwest.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 months ago

    Been there too OP. Not a good place.

    It’s usually easier to find another job, it will reset your mind, and fear won’t be driving you.

    Or you could just commit what you have, comment “YOLO” and auto resolve conflicts and push.

  • magic_lobster_party@fedia.io
    link
    fedilink
    arrow-up
    6
    ·
    3 months ago

    Keep your commits small. Merge often. That will reduce the likelihood of terrible merge conflicts.

    If you’re not sharing your work with your team mates for a long time, then you’re setting yourself up for trouble.

  • Echo Dot@feddit.uk
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    See I wasn’t really going to kill myself today, but the thought of dialing that long ass number is just to much.

  • dubyakay@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    Google gives you results based on your prior search history.

  • invertedspear@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    My best friend when I fuck a commit up: https://ohshitgit.com/

    • luciferofastora@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      I didn’t know about the “revert single file” trick either. The rest is a handy reference too, thanks for sharing!

  • mavu@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    I don’t get why people have such problems with this they even make memes about it.

    Have you people never merged anything by hand or what? It’s really not hard.

    • mere
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      it’s fine for simple merge conflicts but it quickly gets messy when the two branches are trying to do opposite things to the same code

    • enbiousenvy
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      it’s maybe more annoying in gamedev. textures, models are binary files that can’t be changed line-by-line.

      • SleeplessCityLights@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        In game dev, a binary file conflict means someone is going to have to do their work a second time.

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    man \ git

  • DarkAriBanned
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Lol

  • SkunkWorkz@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    “Proper way to commit after merge conflict” sounds like a robot trying to save a relationship after a bad sex experience

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 343 users / day
  • 3.34K users / week
  • 7.72K users / month
  • 16.5K users / 6 months
  • 526 local subscribers
  • 28.2K subscribers
  • 1.93K Posts
  • 64.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.13
  • BE: 0.19.13-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org