The Library Bookmarks · Notes · Snippets

← Back to the front page Filed

Renaming a branch, i.e., `master` —> `main`

git

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

■