Git · Senior · Question 29 of 76
Why can a branch named feature block creating feature/login?
- ✓Correct answer: Refs are paths;
featurecan't be file and folder - 2Slashes are reserved for the names of remote branches
- 3Git limits branch names to a single path segment
Explanation
Loose refs are stored as files under refs/heads/, so refs/heads/feature can't also be a directory. Teams pick a naming scheme like feat/... up front.