• death916@lemmy.death916.xyz
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I just got annoyed yesterday when git made the default branch master and had to fiddle to push to githubs main

    • kredditacc@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      1 year ago

      You had this problem probably because you created your repo with the GitHub web UI?

      I always create the local repo first with git init, make at least 1 commit, and then gh repo create. And yes, my default branch would be master but why should I care if I offend some Americans.

      • Lil' Bobby Tables@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        Speaking as a level headed American, YOU DON’T. PLEASE KEEP DOING THIS.

        I personally feel that to anthropomorphize a project is to demean that very historical significance. It would have been better to replace the term “slave” with, say, “dog”. Then everybody woulda been happy, but NoOOoOooOOo…

    • JackbyDev@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      git push -u origin master and you’re done. Then in the GitHub repo change the “default branch” to master.

      Or, git branch -m main to rename locally.