A way to download files such as esp_spiffs/config.txt?

I thought to keep them in git so I could track their changes . There is no ssh support but I wondered if there could be some webdav, api, or any other way to download such files for local archival?