git commir amed to change the branch name code example Example: change git commit message git commit --amend -m "New commit message"