new function for creating a subdir and initializing an empty Git repo in it