Initialize a git repository in a newly created local directory