I would be concerned about the upcoming macOS Sierra new Optimized Storage feature , where not all files in iCloud Drive are stored locally and can be queried on demand instead.
From my tests, it seems that git does not start the OS to request a file and instead collects a placeholder file, named something like .original_filename.icloud.