mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.21k stars 8.74k forks source link

Added some things so "git init" will default to main instead of master. #926

Closed cgorshing closed 4 years ago

cgorshing commented 4 years ago

Like everything else ... stole from SO https://stackoverflow.com/questions/42871542/how-to-create-a-git-repository-with-the-default-branch-name-other-than-master/50880622#50880622

No this doesn't change this repo to use main, I figured that would require collaborators to do.

There are more things we could do ... see https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx

We could add alias or even functions to help convert existing repos.

jeffbyrnes commented 4 years ago

An easy thing we can do to avoid language rooted in oppression.

mathiasbynens commented 4 years ago

Btw, if anyone is looking for a tool to convert existing repos, I highly recommend @mheap's excellent https://github.com/mheap/github-default-branch.

kt0 commented 4 years ago

@mathiasbynens There's a shortened link in .macos that points to the same file in master branch.

Links is: https://mths.be/macos which resolves to https://github.com/mathiasbynens/dotfiles/blob/master/.macos.

mathiasbynens commented 4 years ago

@kt0 Thanks! Fixed.