the lemmy.monster
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago

In case of fire

lemmy.world

message-square
74
fedilink
898

In case of fire

lemmy.world

SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
74
fedilink
  • Fushuan [he/him]@lemm.ee
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 year 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.

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Isn’t that what git stash is for though?

      • Drew@sopuli.xyz
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Can’t push a stash

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

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

        • flashgnash@lemm.ee
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 year 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

    • reboot6675@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      1 year 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]@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year 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.

    • marx2k@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Gonna need some semicolons or double ampersand in there

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        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
          ·
          1 year ago

          Here you go:

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

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

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: [email protected]

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.

  • 199 users / day
  • 596 users / week
  • 1.63K users / month
  • 10.2K users / 6 months
  • 2 local subscribers
  • 35.6K subscribers
  • 1.6K Posts
  • 24.4K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org