kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbycm0002@lemdro.id
1 year

When you screw up git

lemmy.zip English
65
    You must log in or register to comment.

    • Cevilia (they/she/…)@lemmy.blahaj.zoneEnglish
      1 year

      Holy fuck, that’s a long phone number

        • √𝛂𝛋𝛆@piefed.worldEnglish
          1 year

          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.

            • GreenShimada@lemmy.world
              1 year

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

                • √𝛂𝛋𝛆@piefed.worldEnglish
                  1 year

                  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.

                • Whostosay@sh.itjust.works
                  1 year

                  Why not 1800-SUICIDE?

                    • √𝛂𝛋𝛆@piefed.worldEnglish
                      1 year

                      intentions unclear. Am I calling For or Against

                        • Whostosay@sh.itjust.works
                          1 year

                          Your call.

                          Buh dun tissss

                        • locuester@lemmy.zipEnglish
                          1 year

                          It’s 1-800-APE-TALK

                            • Whostosay@sh.itjust.works
                              1 year

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

                                • locuester@lemmy.zipEnglish
                                  1 year

                                  Yes.

                                    • Whostosay@sh.itjust.works
                                      1 year

                                      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.

                                • Eager Eagle@lemmy.worldEnglish
                                  1 year

                                  It exists too, it seems to be a support line from British Columbia, CA

                                  https://www.crisislines.bc.ca/services

                              • Catoblepas@piefed.blahaj.zoneEnglish
                                1 year

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

                                  • fedditter@feddit.org
                                    1 year

                                    Did you see that ludicrious display last night??

                                      • OpenStars@piefed.socialEnglish
                                        1 year

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

                                          • kambusha@sh.itjust.works
                                            1 year

                                            Your name is Morris Moss, is it not?

                                              • fedditter@feddit.org
                                                1 year

                                                Your name is Morris Moss, is it not?

                                                  • fedditter@feddit.org
                                                    1 year

                                                    It is not.

                                            • serpineslair@lemmy.worldEnglish
                                              1 year

                                              The irony is, I remember it perfectly.

                                            • guillem@aussie.zone
                                              1 year

                                              deleted by creator

                                                • hakunawazo@lemmy.world
                                                  1 year

                                                  A B C D E F G, I hang a noose on this tree. 𝅘𝅥𝅮𝆕

                                                  But for real: You should reset hard the head of the git branch, not yours.

                                              • jaschop@awful.systems
                                                1 year

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

                                                  • TheFriendlyDickhead@feddit.org
                                                    1 year

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

                                                      • gravitas_deficiency@sh.itjust.worksEnglish
                                                        1 year

                                                        🎶 every branch is sacred 🎶

                                                    • SkunkWorkz@lemmy.world
                                                      1 year

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

                                                      • katy ✨@piefed.blahaj.zoneEnglish
                                                        1 year
                                                        git reset --hard <commit-hash>  
                                                        git push -f origin main  
                                                        

                                                        i didn’t see anything, officer

                                                          • martinb@lemmy.sdf.org
                                                            1 year

                                                            You should be forcibly kept away from production systems…

                                                              • henfredemars@infosec.pubEnglish
                                                                1 year

                                                                We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.

                                                                  • gravitas_deficiency@sh.itjust.worksEnglish
                                                                    1 year

                                                                    It’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”

                                                                      • marcos@lemmy.world
                                                                        1 year

                                                                        I wonder what you think “configuring” means.

                                                                    • unalivejoy@lemmy.zip
                                                                      1 year

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

                                                                        • enbiousenvy@lemmy.blahaj.zoneEnglish
                                                                          1 year

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

                                                                            • unalivejoy@lemmy.zip
                                                                              1 year

                                                                              git push origin master --force-with-leash

                                                                              Don’t do that to your master.

                                                                              • katy ✨@piefed.blahaj.zoneEnglish
                                                                                1 year

                                                                                only do that in puppygit (with consent)

                                                                                  • enbiousenvy@lemmy.blahaj.zoneEnglish
                                                                                    1 year

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

                                                                          • kubica@fedia.io
                                                                            1 year

                                                                            git out --never-come-back

                                                                              • errer@lemmy.worldEnglish
                                                                                1 year

                                                                                git never --gonna-give-you-up

                                                                                  • gravitas_deficiency@sh.itjust.worksEnglish
                                                                                    1 year

                                                                                    git never --gonna-let-you-down

                                                                                • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.socialEnglish
                                                                                  1 year

                                                                                  calls suicide hotline to ask for tech support

                                                                                    • CanadaPlus@lemmy.sdf.org
                                                                                      1 year

                                                                                      Don’t hold your breath, they’re pretty mid at their actual job.

                                                                                    • Anafabula@discuss.tchncs.de
                                                                                      1 year

                                                                                      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.

                                                                                      • magic_lobster_party@fedia.io
                                                                                        1 year

                                                                                        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.

                                                                                          • SpaceCowboy@lemmy.ca
                                                                                            1 year

                                                                                            Also rebase is usually better than merge.

                                                                                          • peoplebeproblems@midwest.socialEnglish
                                                                                            1 year

                                                                                            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.

                                                                                              • tomjuggler@lemmy.world
                                                                                                1 year

                                                                                                I prefer to just delete the whole .git and start a new repository with the new version. We are pivoting the project, new name and new repo

                                                                                              • schnurrito@discuss.tchncs.de
                                                                                                1 year

                                                                                                I remember when similar screenshots circulated for how to tell if i am running jdk or jre, which is even more surprising.

                                                                                                • dream_weasel@sh.itjust.works
                                                                                                  1 year

                                                                                                  No merges allowed. Rebase only.

                                                                                                    • dream_weasel@sh.itjust.works
                                                                                                      1 year

                                                                                                      And if you can’t figure out how to rebase, I definitely don’t want you solving your own merge commit!

                                                                                                    • Echo Dot@feddit.uk
                                                                                                      1 year

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

                                                                                                      • GreenKnight23@lemmy.world
                                                                                                        1 year

                                                                                                        in life you commit to many things. you commit to yourself, to your partner, to happiness, to legacy.

                                                                                                        when we die, is that like a push to origin?

                                                                                                        when we die, do our commits all go to the big repo in the sky?

                                                                                                        is god the maintainer? when you pray is that like a bug report?

                                                                                                        so many questions…

                                                                                                          • ranzispa@mander.xyz
                                                                                                            1 year

                                                                                                            Little branch, as our master says: We all have our feature to accomplish. Once our feature is complete, our faith will be up to the maintainer. If you were a well behaved branch, you will be allowed to merge with the master. If you weren’t so, you’ll be deleted and burn In the flames of reflog.

                                                                                                          • aliser@lemmy.world
                                                                                                            1 year

                                                                                                            git is like a minefield. stray away even a little bit from standard path and you are done for. I had git multiple times throw some obscure errors at me when trying some commands and then trying to undo/recover. how’s “undo” is not a git command I don’t understand.

                                                                                                              • nialv7@lemmy.world
                                                                                                                1 year

                                                                                                                undo is a jj command ;)

                                                                                                              • Antagnostic@lemmy.world
                                                                                                                1 year

                                                                                                                If you git help, you could hash things out, rebase your commitments, and push forward to a better life. Then again I could just be cherry picking things.

                                                                                                                Programmer Humor@programming.dev

                                                                                                                programmer_humor@programming.dev

                                                                                                                Subscribe from remote instance

                                                                                                                Create post

                                                                                                                Report community

                                                                                                                Modlog
                                                                                                                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
                                                                                                                  • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
                                                                                                                Visibility: Public

                                                                                                                This community is visible to everyone.

                                                                                                                • 413 users / Day
                                                                                                                • 3.65K users / Week
                                                                                                                • 7.84K users / Month
                                                                                                                • 12.1K users / 6 months
                                                                                                                • 2.63K posts
                                                                                                                • 98.1K comments
                                                                                                                • 2 local subscribers
                                                                                                                • 34.3K subscribers
                                                                                                                • UI: 1.0.0-beta.0
                                                                                                                • BE: 1.0.0-alpha.20
                                                                                                                • Modlog
                                                                                                                • Instances
                                                                                                                • Docs
                                                                                                                • Code
                                                                                                                • join-lemmy.org