With the new version of Playcanvas (January 14, 2019), version control is now possible throughout the PlayCanvas Editor: Version Control in PlayCanvas
But the article also said that:
[…] it’s now possible to synchronize your script assets from your PlayCanvas branch into an external source control system like Github. Try this yourself via our Asset REST API […]
Somebody have an example of a setup with REST API and how he synchronize his scripts with GitHub? Do we need to script our own triggers to start the sync?