Hello,
I’ve recently turned on Version Control a few days ago and just got around to setting up a Remote Repository (GitHub), I’ve just ‘pushed to remote’ for the first time, and I’ve noticed there are only 3 items on my GitHub repo, while I have 100+ workbenches uploaded.
I assume this has just uploaded items which have changed since I turned on Verion Control a few days ago. I was hoping enabling remote repo would push all of my workbenches to github.
What is the best way to proceed? I want to get all of the items uploaded to my github repo, not just changes, so I have a backup of all of the items on Flow.
Thanks.
Solved
Flow Version Control - How to get all of my workbenches on github?
Best answer by hkingsbury
You can leverage the REST API to automate this,
- make a call to get all the repositories - /repositories
- make a call to get all the items in each repository - /repositories/{repository}/items

- Next we need to make a POST call to /versioncontrol/commits/{repository}/{item}. This API isn’t documented. You can inspect the network calls when clicking the commit button in the UI to see the full call It just requires an empty json upload body

- The local repository will now be up to date, and from here you can go and manually push to the remote repository.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.





