I do not know if you will understand that you will find a pure technical reason below. However, I can suggest that spaces tend to throw wrenches into all sorts of * nix utilities and file name processing, so perhaps it was to avoid accidentally doing something wrong down the line. In the end, the git branch is reduced to a file in the repo, and this avoids spaces in this file name (in particular, the branch is a file in .git / refs / heads /, as indicated in the comment).
Basically, I would suggest that the reason is philosophical and designed to make everything simple. Branch names are human-readable names that have no real reason to be complex (and require you to type two extra characters each time haha ββto call the ghost of the system administrator who smoothed each command into an illegible three-letter combination). Otherwise, this is called the argument "why cd is not chdir."
shelhamer Jul 08 2018-11-11T00: 00Z
source share