~/talk

Changing the default branch name on GitHub

Talkat CodeLand 2020 · 2020-07-23..07-24· [developer-experience]
slides:none on file

Shows the concrete steps to rename an existing repo default: run git branch -m master main, push with git push origin main, then update the remote default via change default branch in Settings → Branches before deleting the old remote branch (remote deletion is blocked while it’s the default). Warns about CI/CD and collaborators needing coordination. Offers a practical workaround: add a shell wrapper in your ~/.zshrc or ~/.bashrc that renames the initial branch to main on git init and remember to source it.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.