Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 years ago

In case of fire

lemmy.world

message-square
74
fedilink
897

In case of fire

lemmy.world

@SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 years ago
message-square
74
fedilink
alert-triangle
You must log in or register to comment.
  • @mercano@lemmy.world
    link
    fedilink
    5•2 years ago

    First, git checkout -b omgFire, then do the rest.

  • @dirtySourdough@lemmy.world
    link
    fedilink
    6•
    edit-2
    2 years ago

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

    In case of fire<br> git commit -a<br> git push<br> git -tf out

  • Free Palestine 🇵🇸
    link
    fedilink
    3•2 years ago

    Commit message: It’s lit🔥🔥🔥

  • Fushuan [he/him]
    link
    fedilink
    English
    36•2 years ago

    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
      2•2 years ago

      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]
        link
        fedilink
        English
        2•2 years ago

        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
      2•2 years ago

      Isn’t that what git stash is for though?

      • Drew
        link
        fedilink
        4•2 years ago

        Can’t push a stash

        • @PoolloverNathan@programming.dev
          link
          fedilink
          English
          1•
          edit-2
          2 years ago

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

        • @flashgnash@lemm.ee
          link
          fedilink
          2•2 years ago

          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

    • @marx2k@lemmy.world
      link
      fedilink
      1•
      edit-2
      2 years ago

      Gonna need some semicolons or double ampersand in there

      • Fushuan [he/him]
        link
        fedilink
        English
        2•2 years ago

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

        • malijaffri
          link
          fedilink
          2•2 years ago

          Here you go:

          git checkout -b firemyusername
          git commit -am="fire"
          git push
          
          • Fushuan [he/him]
            link
            fedilink
            English
            1•2 years ago

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

  • @soggy_kitty@sopuli.xyz
    link
    fedilink
    4•2 years ago

    Sorry to be that guy but I don’t think it’s smart to put this anywhere in public, keep this shit somewhere private as a joke

  • @barsoap@lemm.ee
    link
    fedilink
    7•2 years ago

    This is a lawsuit waiting to happen. Anyway any of you ever heard of ACID? Why aren’t our undo buffers durable and integrated with version control? Squash and forget the individual keystrokes as soon as an actual commit is made.

  • @Piemanding@sh.itjust.works
    link
    fedilink
    13•2 years ago

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

  • @arymandias@feddit.de
    link
    fedilink
    84•2 years ago

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

    • TheHarpyEagle
      link
      fedilink
      11•2 years ago

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

  • @Aurenkin@sh.itjust.works
    link
    fedilink
    30•2 years ago

    In case of

    Git commit

    Git push origin main --force

    Fire

  • Shizu
    link
    fedilink
    54•2 years ago

    Merge conflict

    • @pivot_root@lemmy.world
      link
      fedilink
      20•2 years ago

      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
      10•2 years ago

      Should’ve pulled first before starting your work.

      • @atyaz@reddthat.com
        link
        fedilink
        6•2 years ago

        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
          2•2 years ago

          Then you pull before committing.

          • @atyaz@reddthat.com
            link
            fedilink
            4•2 years ago

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

            • @xmunk@sh.itjust.works
              link
              fedilink
              3•2 years ago

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

    • @evilgiraffe666@ttrpg.network
      link
      fedilink
      English
      6•2 years ago

      On a push? What are you merging there?

      • Fushuan [he/him]
        link
        fedilink
        English
        4•2 years ago

        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
          6•2 years ago

          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.

  • @kd45@lemm.ee
    link
    fedilink
    31•2 years ago

    Cause of death: 15 minute long pre-push hook

    • Redeven
      link
      fedilink
      17•2 years ago

      Just

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

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

      • @PoolloverNathan@programming.dev
        link
        fedilink
        English
        1•2 years ago

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

  • @hakunawazo@lemmy.world
    link
    fedilink
    2•2 years ago

    If the flames are nearby I would be so reckless and execute git push --force.
    I don’t want to die for a merge conflict.
    But maybe then the team will burn me later.

    • SpongeBorgCubePants
      link
      fedilink
      2•2 years ago

      Just push to a new branch

  • @MoonRaven@feddit.nl
    link
    fedilink
    25•2 years ago

    *git out

    • @dirtbiker509@lemm.ee
      link
      fedilink
      3•2 years ago

      *git -tf out

  • CaptainBlagbird
    link
    fedilink
    25•
    edit-2
    2 years ago

    git fire

    • @xantoxis@lemmy.world
      link
      fedilink
      1•2 years ago

      deleted by creator

  • Fedora
    link
    fedilink
    21•2 years ago

    What about git add?

    • @applebusch@lemmy.world
      link
      fedilink
      1•2 years ago

      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.

    • @osmn@lemmy.ml
      link
      fedilink
      16•2 years ago

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

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml
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.
  • 1 user / day
  • 35 users / week
  • 295 users / month
  • 1.37K users / 6 months
  • 4 subscribers
  • 1.85K Posts
  • 39K Comments
  • Modlog
  • mods:
  • @cat_programmer@lemmy.ml
  • @AgreeableLandscape@lemmy.ml
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org