Copies a directory structure, ignoring the .git directory