git | smart naming: laptop,repo, branch/dir

— laptop system name .. easy to change

  • relevant in git commit msg
  • important in my blog discussion on laptops

I propose short name + long name, just like country names. A short name is needed for commit msg prefix, and can be specified in git hooks. I would prefer 3-char. Longer name size can be 4 to 8, as a unique name used in my blogs. Either of them can be the system name.

— branch name .. easy to change

  • cpp1 vs cppProj .. good convention.
  • for bash, py, perl, I think we can use the same name as folders. Easier to remember.

— folder name for a given branch ..
If identical to the branch, then git-checkout is complicated.
Also, the folder name is often my accelerator alias, so “bash” and “py” are questionable choices

— repo names .. hopefully easy to change