I started looking into it and started implementing a bit of code.
The idea is to create a [git-remote-helper]
(Git - Reference) : git-remote-safe
when calling : git clone safe://longName/service
or : git fetch safe://longName/service
git would redirect the command to the helper
The helper would ask permission to connect on the Maidsafe launcher
And then copy/read files using MaidSafe DNS API
Playing with access right on the different (sub)folder contained in .git we could control what is public and what is private (HEAD or master for example you wouldn’t want anyone to be able to modify)
Problem arise with fetch because of a missing maidsafe API I highlighted some times ago : Missing DNS API : service subfolder - API - Safe Dev Forum
You basically cannot discover subfolder of a service using the DNS API, this will probably prevent us from implementing fetch capability