Skip to content

Instantly share code, notes, and snippets.

@wrongbranch
Created May 24, 2021 02:32
Show Gist options
  • Save wrongbranch/e23647bb7e108c72850be64aa50deaf9 to your computer and use it in GitHub Desktop.
Save wrongbranch/e23647bb7e108c72850be64aa50deaf9 to your computer and use it in GitHub Desktop.
github の default branch を main から master に rename

github の default branch を main から master に rename

on github

repository
 settings
  branches
   edit - rename

main is now named master
If you have a local clone, you can update it by running:

git branch -m main master
git fetch origin
git branch -u origin/master master
git remote set-head origin -a

OK got it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment