by philshem · 5y ago · 0 comments
Could one imagine a git repository stored as static files (e.g. in a cloud bucket), and the client then runs git the functionality.
Or, a "serverless" git, with cloud functions?
(I guess concurrent writing would be an issue.)
EDIT: I don't mean ssh'ing to a server with git installed on it. I was thinking of a git-based protocol but based on static files. But thanks for the tips.
Simple git server over SSH:
local> ssh example.com
example.com> git init --bare code
example.com> exit
local> git clone example.com:code
Nothing required on the remote side other than an SSH server. Works with multiple users, too - just use SSH auth.You can set it as a remote.
A git server is not required. You can just run it locally or even use another folder as a remote.
A long time ago when I was working in a company that still prescribed SVN, I used a backed up network drive location as the location for my git bare repos, I just used it to manage prototypes or feasibility work nothing serious but it was more familiar and productivity for me than the accepted SVN workflow.
[0] - https://drewdevault.com/2018/07/02/Email-driven-git.html