Hello @JoeGC hope all is well and welcome to the community.
N8N has an n8n node, which you can use to pull the json of any existing workflow.
N8N has a Convert to file, which can be used to create a file (binary) for the workflow json (this step is optional, since the git nodes have an option to send text, instead of binary).
N8N has git, github, gitlab nodes, which you can use to upload the text or the file to the repo.