There was this one python script shared in this post: viewtopic.php?f=18&t=1890&start=30
. However, it wasn't working on 22.214.171.124 and throwing lots of errors when you tried to execute it. Anyway, you could use this attached version to export POUs into XML files for Git. To use it...
Open up project/library -> Tools -> Scripting -> Execute Script File... -> Point to location of file. The script will export the XML files with POU name and its GUID at the same directory as the script (i.e. create a folder to prevent a mess).
CoDeSys is an amazing platform and their support team is always awesome! Continue to toggle one bit at a time