Git: Rename Branch Use the Git: Rename Branch command to rename the current git branch. I often use the VS Code command because I have trouble remembering how to rename a branch with the git command line interface.