Recently I had to update my Edge830 Totals.fit file to match the number in garmin-connect application.
I saw that there are several tools to convert FIT files to CSV and back to FIT. For some reason I could not find any of these tools. So, I decided to write my own tools using the GARMIN SDK.
The tools are 2 c files fit2csv.c and csv2fit.c. Their source files are in https://github.com/YoramF/FIT2CSV2FIT_tools and anyone who needs them can copy the files, extract the GARMIN SDK and compile & link according to README.md.
Good luck :)