Save git repository to the correct directory.