Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.de to Programmer Humor@lemmy.mlEnglish · 2 years ago

We've all been there

feddit.de

message-square
16
fedilink
297

We've all been there

feddit.de

𝕨𝕒𝕤𝕒𝕓𝕚@feddit.de to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
16
fedilink
  • NotSteve_@lemmy.ca
    link
    fedilink
    arrow-up
    15
    ·
    2 years ago

    How do you accidentally force push lol

    • 𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOP
      link
      fedilink
      arrow-up
      22
      ·
      2 years ago

      I assume the accident was not to force push, but to the wrong branch

      • magic_lobster_party@kbin.social
        link
        fedilink
        arrow-up
        15
        ·
        2 years ago

        I hope they learned the value of protecting your branches.

      • Redscare867@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 years ago

        This is why I always git push origin +branch_name

        • forgeddit@sopuli.xyz
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 years ago

          My go-to these days is to push the current branch, dynamically.
          git push origin HEAD

          Depending on the VC, HEAD has different prefix/suffixes to make it work.

          Edit: formatting, also I never checkout master I do origin/master so I cannot even push it with this method. I think

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      I was wondering the same. Any branch that has any logic besides a ci build attached to it should have been force push protected by default…

    • sebsch@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Git rebase makes it possible getting used to do so

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.

  • 1.41K users / day
  • 1.88K users / week
  • 2.52K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.7K subscribers
  • 1.73K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org