Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前

In case of fire

lemmy.world

message-square
74
link
fedilink
927

In case of fire

lemmy.world

SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前
message-square
74
link
fedilink
alert-triangle
You must log in or register to comment.
  • arymandias@feddit.de
    link
    fedilink
    arrow-up
    99
    ·
    2 年前

    Me burning to death fixing pylint warnings before I can commit my code.

    • TheHarpyEagle@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      2 年前

      Melting because someone didn’t configure the right profile and now isort and black are fighting over imports.

  • Madlaine@feddit.de
    link
    fedilink
    arrow-up
    77
    arrow-down
    1
    ·
    edit-2
    2 年前

    Why is the wrong version always the one that is posted.

    The (in my eyes) correct (and iirc original) version is:

    • Git commit
    • Git push
    • Get out*

    *as someone pointed out (and I remember it as well, but thought I rembered it wrong and corrected it, shame on me in this context) the last point may be originally “git out”

    • ChaosInstructor@lemmy.world
      link
      fedilink
      arrow-up
      29
      ·
      2 年前

      i might remember it wrong…but was it not ‘git out’?

      • Kidplayer_666@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        2 年前

        It is

      • Madlaine@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        Honestly I remebered it as “git out” as well, but that would be semantically incorrect and “get out” seems close enough.

    • uis@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      2 年前

      Here git out is mentioned

    • zero_gravitas@aussie.zone
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 年前

      That is so much better 👍

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      I remember creating an alias for “git out” which worked like teamware or meecurial’s “out” (outgoing) command to show you what you would be pushing to a branch.

  • Shizu@lemmy.world
    link
    fedilink
    arrow-up
    56
    ·
    2 年前

    Merge conflict

    • pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      21
      ·
      2 年前

      Here at Company Inc, we continue to send our thoughts and prayers to the 38 interns who perished in the office fire of ‘07. Sixteen years later, we still mourn the loss caused by this unpredictable, unpreventable, and unlitigatable accident. We hope that, in time, the grieving families of those interns are eventually able to move on with both their hearts and their loved ones’ funeral expense debts.

    • pastermil@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      2 年前

      Should’ve pulled first before starting your work.

      • atyaz@reddthat.com
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        Sometimes my work takes a while and other people push in the meantime. Guess I’m dying the fire.

        • pastermil@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          Then you pull before committing.

          • atyaz@reddthat.com
            link
            fedilink
            arrow-up
            6
            ·
            2 年前

            Boom, merge conflict. The only thing left to me is force push and delete everyone’s changes.

            • xmunk@sh.itjust.works
              link
              fedilink
              arrow-up
              3
              ·
              2 年前

              Eh, it’s probably fine. Those chumps don’t do anything useful.

    • evilgiraffe666@ttrpg.network
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 年前

      On a push? What are you merging there?

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 年前

        Ofc, you might be working directly on develop/master/shared branch, I know people that work in those environments (ew)

        • evilgiraffe666@ttrpg.network
          link
          fedilink
          English
          arrow-up
          8
          ·
          2 年前

          Right, on shared branch you might need to pull first if you’re out of date (and you would be if you’re all leaving the office at the same time), and that could cause a merge conflict.

          It’s like I always said, bad branching strategies are a fire safety issue.

    • Rikudou_SageA
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Guess I'll die

  • PrettyFlyForAFatGuy@lemmy.ml
    link
    fedilink
    arrow-up
    48
    ·
    edit-2
    2 年前

    i read a reddit post years ago where a someone wrote a script that iterates through all the projects in their dev folder, for each project creating a new branch, committing and pushing.

    they then aliased it to “fire” or “panic” or something like that.

    not a bad idea really

    • 18107@aussie.zone
      link
      fedilink
      arrow-up
      32
      ·
      2 年前

      git-fire

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      2 年前

      As in one they’d manually run if there was a fire?

      • icedterminal@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 年前

        Exactly. The alias just points to the script which is executed.

        • flashgnash@lemm.ee
          link
          fedilink
          arrow-up
          8
          ·
          2 年前

          Ohh I see so you just run git fire?

          • PrettyFlyForAFatGuy@lemmy.ml
            link
            fedilink
            arrow-up
            6
            ·
            2 年前

            if its aliased you should be able to just run “fire” and it does the rest

            • flashgnash@lemm.ee
              link
              fedilink
              arrow-up
              5
              ·
              2 年前

              Oh bash alias right

  • Fushuan [he/him]@lemm.ee
    link
    fedilink
    English
    arrow-up
    37
    ·
    2 年前

    Slight correction. In case of fire:

    Git checkout -b firemyusername Git commit -am=“fire” Git push.

    We don’t want to have conflicts with code versions when going in on a rush, better to create a new branch. We can merge all the conflicts afterwards.

    • reboot6675@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Oh man I hadn’t seen a git checkout -b in years haha since they introduced switch and restore, never looked back

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 年前

        I’ll admit I just press the buttons in my favourite IDE and had to look up the commands to remind myself, but yeah.

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Isn’t that what git stash is for though?

      • Drew@sopuli.xyz
        link
        fedilink
        arrow-up
        4
        ·
        2 年前

        Can’t push a stash

        • flashgnash@lemm.ee
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 年前

          Can’t you? Could’ve sworn you could

          I’ve done it with TFS source control at least, thought it would be possible with git

        • PoolloverNathan@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 年前

          git push origin refs/stash@{$n}:stash/$USER/$n iirc

    • marx2k@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 年前

      Gonna need some semicolons or double ampersand in there

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 年前

        Nah, what I need is doble new lines of code blocks since this is markdown and it fucked the display.

        • malijaffri@feddit.ch
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          Here you go:

          git checkout -b firemyusername
          git commit -am="fire"
          git push
          
          • Fushuan [he/him]@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 年前

            I know how to do it, I was just lazy lmao.

  • kd45@lemm.ee
    link
    fedilink
    arrow-up
    34
    ·
    2 年前

    Cause of death: 15 minute long pre-push hook

    • Redeven@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      2 年前

      Just

      git add . && git commit -m "sorry theres a fire" && git push -u origin feature/fire

      And run out. It will eventually finish pushing. Or not.

      • PoolloverNathan@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 年前

        git add .; git commit -nm fire --no-gpgsign; git push -n origin fire/${USER}

  • Aurenkin@sh.itjust.works
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 年前

    In case of

    Git commit

    Git push origin main --force

    Fire

  • MoonRaven@feddit.nl
    link
    fedilink
    arrow-up
    26
    ·
    2 年前

    *git out

    • dirtbiker509@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      *git -tf out

  • CaptainBlagbird@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    2 年前

    git fire

    • xantoxis@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      deleted by creator

  • lukas@lemmy.haigner.me
    link
    fedilink
    arrow-up
    22
    ·
    edit-2
    2 年前

    deleted by creator

    • osmn@lemmy.ml
      link
      fedilink
      arrow-up
      18
      ·
      2 年前

      “I followed the rules, Boss. Not my fault the rules are stupid 🤷‍♂️”

    • applebusch@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      You could change it to git commit . to add and commit everything. But just in case you weren’t up to date, you should probably do

      git commit .
      
      git pull -s ours
      
      git push
      

      For maximum chaos.

  • Piemanding@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    2 年前

    Mark this shit NSFW. I could have viewed it at work.

  • Marxism-Fennekinism@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    2 年前

    Counterpoint: Virtualized environment/remote desktop. The real computer is in a data center hundreds of kilometers away with world class fire suppression systems.

    Counter counterpoint: If you’re virtualized you might be working from home, in which case, that’s rough, hope they manage to restore your house.

    • RollForInitiative@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      With a laggy desktop experience i also can’t really configure how i want? No thank you. It’s bad enough i have to use Windows for software development instead of letting me install Linux

      • Marxism-Fennekinism@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 年前

        I like it because I don’t have any of the company’s shit on my own machine. I absolutely don’t trust them not to spy on my personal computer use if they had access to it. With remote desktop I close it at the end of the work say and it has no more access to my computer than I have access to their critical systems.

        In my case, their shit that we’re required to use don’t even support Linux so if it wasn’t for virtualized environment I’d had to install Windows on my own machine.

        • RollForInitiative@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          Fair, good point. I guess i’m lucky that i don’t have to use my own devices, my machine is provided by my employer.

  • nao@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    2 年前

    no changes added to commit (use “git add” and/or “git commit -a”)

    • rufus@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 年前

      It should (at least) be:

      git commit -a -m "🚨🔥🚨"
      git push --force
      

      Better, create a new branch and push it to origin(?).

      Relevant The IT Crowd

      • IAm_A_Complete_Idiot@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 年前

        Better have not created any new files tho - git commit -a doesn’t catch those without an add first.

        • ZephyrXero@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 年前

          So we need git add . && git commit -a here really

          • IAm_A_Complete_Idiot@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            2 年前

            In which case the -a isn’t needed.

  • xantoxis@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    2 年前

    And if your git repo is self-hosted on-prem, you’d better be helping pack it and carry it out.

  • dirtySourdough@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 年前

    I’ve got something similar on my office door that reads

    In case of fire git commit -a git push git -tf out

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.

  • 41 users / day
  • 1.43K users / week
  • 3.01K users / month
  • 9.5K users / 6 months
  • 146 local subscribers
  • 37.2K subscribers
  • 1.79K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org