Git extension API

I might be missing something extremely obvious here, but let’s say I’m building a custom backend/frontend extension and I want to use git on the ‘backend’ side to initialize a repository programatically. How would I go about that? I tried to read the @theia/scm package, however it was not as straight forward as I had hoped.

[original thread by Bryan Turek]

backend is stateless, it does not know anything about user session or workspaces, only in the context of a specific user one knows what is a workspace which git repositories are there

if you just want to do git init in some folder though you can use child_process node.js module