+1
Completed

Improve default local branch name on remote branch checkout

Ed Ball 3 years ago • updated by Thomas Singer 3 years ago 3

When I checkout `master` from my `fork` remote, the default local branch name is `master-2`, which isn't very helpful in identifying it. `master-fork` would be better.

GOOD, I'M SATISFIED
Satisfaction mark by Ed Ball 3 years ago

Just for my understanding: you have multiple remotes and in each one is a master you have checked out?

Yes, I've got two remotes, 'origin' and 'fork'. I've already checked out 'origin/master' (local branch 'master') and I'm checking out 'fork/master'. The latter can't be named 'master' locally, since that already exists, but 'master-fork' would be a more useful default name than 'master-2'.