git-branch - git branching strategy - How do I rename a local Git branch?
git create new branch / git / version-control
I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories.
Advanced Git users can rename manually using:
Rename the old branch under .git/refs/heads to the new name Rename the old branch under .git/logs/refs/heads to the new name Update the .git/HEAD to point to yout new branch name
git-branch - git checkout remote branch - How to remove local (untracked) files from the current Git working tree git-fetch - git fetch vs pull - What is the difference between 'git pull' and 'git fetch'? git tutorial - How do I undo 'git add' before commit? git version control commands - How do I undo the most recent local commits in Git? version-control - git is a centralized version control system - How do I force “git pull” to overwrite local files? git-branch - git checkout remote branch - How do you create a remote Git branch? git-pull - git pull specific branch - Rename master branch for both local and remote Git repositories git undo fixup - Reset local repository branch to be just like remote repository HEAD remote-branch - git fetch remote branch - How do I check out a remote Git branch? version-control - git branching strategy - How do I delete a Git branch locally and remotely? git checkout branch - How do I push a new local branch to a remote Git repository and track it too?