🎃

Gitの個人的によく使うコマンド集

2022/12/02に公開

直前のブランチに移動

直前までいたブランチに移動した場合にブランチ名を指定しなくても移動できる

git switch -

ローカルのブランチ名の変更

現在いるブランチのブランチ名を修正できる

git branch -M <新しいブランチ名>

git branch -M new_branch_name

指定したブランチのブランチ名を修正できる

git branch -M <変更したいブランチ名> <新しいブランチ名>

git branch -M current_branch_name new_branch_name

Discussion