LoginSignup
0
0

More than 1 year has passed since last update.

GitHub で `master` -> `main` に変えた時にローカルで叩くコマンド

Posted at

変えた後別のマシンで開いた時に大体忘れてるのでメモっておく

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0