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

When you screw up git

lemmy.zip

message-square
62
fedilink
719

When you screw up git

lemmy.zip

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

    You should be forcibly kept away from production systems…

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      9
      ·
      19 hours 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
        arrow-down
        5
        ·
        edit-2
        17 hours 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
          3
          ·
          14 hours ago

          I wonder what you think “configuring” means.

    • unalivejoy@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

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

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

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

        • unalivejoy@lemmy.zip
          link
          fedilink
          arrow-up
          4
          ·
          12 hours 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
          12 hours ago

          only do that in puppygit (with consent)

          • enbiousenvy@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 hours 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.

  • 2.15K users / day
  • 5.72K users / week
  • 9.8K users / month
  • 19.9K users / 6 months
  • 1 local subscriber
  • 26.8K subscribers
  • 1.49K Posts
  • 41.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org