When developing on Win10, I'm used to New'ing a file on my D: Drive [I reserve my C: drive for operating system stuff]. Then I edit it in an editor or an IDE, then compile and lode HEX into an MCU.
But, this is a new paradigm for me: the files reside on the device, right? But, how do you achieve version control? If the active file [i.e. the file I'm actually editing] resides on the device [e.g. ESP32/NodeMCU/Raspberry Pi Zero/etc.], then I would like there to be a mirrored copy on my Win10 file system [i.e. "local file"], with some kind of version control.
In my attempts to achieve something like this, I can't figure out what causes a local file to get loaded into the device [I'm currently playing with a NodeMCU]. What command(s)/action(s) result in, for instance, a local boot.py file to get loaded into my NodeMCU? Same with a local main.py file? I see that both can exist in the Thonny IDE, one had square braces around it ("[filename]"), what does that mean, etc.?