question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serve bare git repo from a remote server?

See original GitHub issue

Hello, 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:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gilbertcommented, Oct 24, 2019

I would like to know the answer to this too. Bonus points for proxying to another git server like GitHub itself!

0reactions
vadolasicommented, Nov 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found