Jamesj999 Lemmy
  • Communities
  • Create Post
  • 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
fedilink
932

In case of fire

lemmy.world

SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前
message-square
74
fedilink
  • 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.

    • 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

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

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

        • 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

    • 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.

    • 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.

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.

  • 216 users / day
  • 763 users / week
  • 2.21K users / month
  • 7.17K users / 6 months
  • 1 local subscriber
  • 39.5K subscribers
  • 1.93K Posts
  • 40K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org