File on /build reverted to much earlier version


Code that I wrote/saved last night disappeared. The file I worked on at reverted to a much earlier version…

I definitely saved the file, in fact the code (with latest changes that are no longer visible on /build via my browser) it is now running on my Spark Core firmware where I flashed it.

  1. How can I retrieve that code?
  2. What went wrong, and can I prevent this from recurring in future?
  3. Can I work on my files locally and SFTP them to the server? (That is a solution to #2)



You can use Spark-cli to compile code and flash it to the core using the command:

spark flash core_name folder_name

@jgoggins or @dave might be able to help look into this…

1 Like