Lazygit

  1. Press 3 to go to 3. Local Branches panel
  2. Select a branch (using //🖱️)
  3. Press R to rename the branch

Basic Terminal

git branch -m <oldname> <newname>