mazgi.com
  • Creations
  • Lifelogs
  • Technologies

Github

October 30, 2020

How to Change Git Default Branch to "main" from "master"

tl;dr

  1. git branch --move master main
  2. git remote set-head origin --auto

https://github.com/mazgi-sandbox/202010.change-git-default-branch

  • #Git,
  • #Github

© Hidenori Matsuki.

Powered by Hugo

rev. (undefined)

  • Creations
  • Lifelogs
  • Technologies