4 ms·
Probably a naive question, but is a git server required? Could one imagine a git repository stored as static files (e.g. in a cloud bucket), and the client the
by philshem 6y ago
Probably a naive question, but is a git server required?
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.
- rovr138 6y agoThe most naive git server is a place you can ssh into that has git installed and disk space. 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.
- pekim 6y agoThis is what I do, on a $5/month digitalocean VPS. It's about as simple as it gets, and is sufficient for my needs.
- leephillips 6y agoAll you need is a web server, if you accept patches by email.
- q3k 6y agoThat's how Git already works, eg. over SSH or even HTTP. 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.
- DoingIsLearning 6y agoyou can read up on the --bare option but you can point git to a remote location such as a network drive or even a local folder (I don't recommend this of course) but my point is there is no hard restriction within git as to where it is hosted. 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.
- IggleSniggle 6y agoYes! For one, there is git via email, which is a oft overlooked built-in feature of git. Discussion (I am not the author) [0] [0] - https://drewdevault.com/2018/07/02/Email-driven-git.html https://drewdevault.com/2018/07/02/Email-driven-git.html