prepare directory and files for logging and the git repository