Voyager App Test
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 1 month ago

When you screw up git

lemmy.zip

message-square
66
link
fedilink
793

When you screw up git

lemmy.zip

cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 1 month ago
message-square
66
link
fedilink
  • martinb@lemmy.sdf.org
    link
    fedilink
    arrow-up
    20
    ·
    1 month ago

    You should be forcibly kept away from production systems…

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 month ago

      We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 month ago

        It’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          I wonder what you think “configuring” means.

    • unalivejoy@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      Never use --force. Always use --force-with-lease.

      • enbiousenvy@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        I’ve mistyped that a couple of times to be --force-with-leash

        • unalivejoy@lemmy.zip
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          git push origin master --force-with-leash

          Don’t do that to your master.

        • katy ✨@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 month ago

          only do that in puppygit (with consent)

          • enbiousenvy@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 month ago

            TIL thats a real thing https://github.com/catpuppyapp/PuppyGit

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 925 users / day
  • 4.68K users / week
  • 8.51K users / month
  • 18.7K users / 6 months
  • 1 local subscriber
  • 27.3K subscribers
  • 1.22K Posts
  • 25.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org