Learn how to rename a Git branch locally and on remote safely with clear commands and a short checklist for clean history.