Skip to content

Comment on .gitignore Is Inherently Sisypheanparent

Comments

this really should be git's default, with a warning on git init .

They decided to waste the default warning with a wrist-slap for using "master"

They decided to waste the default warning with a wrist-slap for using "master"

I think that one can eliminate that by adding this to /etc/gitconfig, ~/.config/git/config or ~/.gitconfig as appropriate:

    [init]
            defaultBranch = master

that's right but often CI systems are ephemeral or locked down so the logs get cluttered with this noise

That’s fair. They really should revert that nonsense.

  $ git init
  hint: whoa whoa whoa my dude "master" no...

  $ git config --global init.defaultBranch aids_is_gods_punishment_for_depravity
  $ git init
  ok

my favorite song from team america!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.