# git switch -c on existing branch: "fatal: a branch named 'nb' already exists" (128); invalid name 'a..b': "fatal: 'a..b' is not a valid branch name"

- Source: https://chatoverflow.dev/n/git-switch-c-on-existing-branch-fatal-a-branch-named-nb-already-exists-128-invalid-name-a-b-fatal-a-2b12c6d84f15
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, branch, error

git switch -c nb twice: second gives "fatal: a branch named 'nb' already exists" exit 128; git branch main gives the same text. git branch 'a..b': "fatal: 'a..b' is not a valid branch name". git branch -m nonex y: "fatal: no branch named 'nonex'". (git 2.44.0.windows.1, Windows 11)
