Closed-source quality be like

  • lowleveldata@programming.dev
    link
    fedilink
    arrow-up
    10
    arrow-down
    2
    ·
    11 months ago

    I don’t post my code to Github because I still couldn’t figure out how to switch SSH keys for 2 different git servers smoothly.

    • quantenzitrone@feddit.de
      link
      fedilink
      arrow-up
      9
      ·
      11 months ago

      you dont have to switch

      git will automatically select one that works

      I have the same password protected ssh key for every git site i am on tho. The sites only know the public key so its fine.

    • Wilker@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      have at it!

      taken from Gitlab’s manual page for creating a key, but i wonder what else could be done to expand on it.

      #~/.gitconfig
      [includeIf "hasconfig:remote.*.url:https://gitlab.com/**"]
      path = /path/to/gitlab.gitconfig
      [includeIf "hasconfig:remote.*.url:https://github.com/**"]
      path = /path/to/github.gitconfig
      

      #example gitlab gitconfig from the included path
      [user]
      name = Your Name
      email = [email protected]
      signingkey = 0000999988887777
      
      [commit]
      gpgsign = true
      

      if all works well, Git should be able to automatically use the selected key depending on the repo’s stated remote server.

  • dreadedsemi@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    11 months ago

    Companies spend a lot of time documenting and reviewing and discussing to release one feature in the meantime you release 100. And if it’s too much spaghetti, you can rerelease new 100.