Once COP is over rework this to reduce the repetition of the export and git comitting code.
Once COP is over rework this to reduce the repetition of the export and git comitting code.