Open1

Git commands cheat sheets

cordeliacordelia

Change local repository name

# ブランチ名をmasterからmainに変更する
git branch -m master main

examples

  • localに新しくリポジトリを作成してブランチがmasterだった時にmainに変更したい