HACKER Q&A
📣 Existenceblinks

Is anyone using any headless Git service?


Basically an api server for git, like Github API without public facing stuff (also excluding endpoints for its public facing stuff like issues/pull requests etc), only git related endpoints.

I believe there should be at least one .. but I didn't find any. Only found self-hosted git even though some have api.

So I think you know what I mean by "headless".


  👤 pmontra Accepted Answer ✓
Not sure if it's what you're looking for but I self host gitolite on a VPS. Access and auth control is via ssh keys on its user on the server and its script there. Administration is via a git push. There are only git repos, no GUI. Git is the API.

👤 pkd
Something like the Gitea API? https://try.gitea.io/api/swagger

I don't know if you can run it purely headless.


👤 cdaringe
ssh myserver -c “git init” && git remote add origin git@myserver && git push origin HEAD.

headless git is just ssh to a sever with an associated repository, ya?

What else do you need?