you might want to take a look at https://content.helpme-codesys.com/en/CODESYS%20Git/_git_using_scripting.html