GoCD example configuration in YAML
Install GoCD YAML configuration plugin and add this to your XML config:
<config-repos>
<config-repo pluginId="yaml.config.plugin" id="yamlrepo1">
<git url="https://github.com/DanH91/gocd-yaml-config-example.git" />
</config-repo>
</config-repos>