templates / branches--on commit checkout: introduce --detach synonym for "git checkout foo^{commit}" (3266967)
   1: this is just to ensure the directory exists.