Serve bare git repo from a remote server?
See original GitHub issueHello, firstly - thanks for the amazing repo.
I understand that in your implementation (and stackdot’s), you use git-upload-pack
and git-receive-pack
processes to allow the client and server to talk to each other (figure out what packets the other needs, etc.) To my knowledge, this git command accepts a local directory, but what if I host all my bare git repositories on a separate server, like an AWS S3 bucket? Could I stream a remote bare repo to these git commands, that then stream the necessary packets to the client? I don’t want to host all my bare git repos on my heroku instance, since the storage is ephemeral and limited. Any guidance would be appreciated!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Getting Git on a Server
This is generally straightforward to do. In order to clone your repository to create a new bare repository, you run the clone command...
Read more >How to create a remote Git repository from a local one?
I think you make a bare repository on the remote side, git init --bare , add the remote side as the push/pull tracker...
Read more >Creating Local And Remote Hosting Server for Git Repositories
A bare Git repository is typically used as a Remote Repository that is sharing a repository among several different people. You don't do...
Read more >Setting Up Your Remote Repository With Git | InMotion Hosting
Log into your server via SSH · In a convenient location, create a new directory ending with the . · Enter the new...
Read more >Quickly create a Git bare repo with init or clone example
You can think of the Git repositories hosted on GitHub or GitLab as bare repositories, as no local development happens directly on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would like to know the answer to this too. Bonus points for proxying to another git server like GitHub itself!
I found a solution for this, maybe not the best of all but it works well:
There are some tools like s3fs and goofys that allow you to mount an s3 bucket on the filesystem.