Hacker News
Local Git Remotes
zenoprax
|next
[-]
For example, `git remote -v` would show: `secure-s3 /mnt/fuse/rclone/secure-s3/git/$REPO.git`
I think concurrency is a problem with file-based remotes but for one person keeping a desktop and laptop in sync it is much simpler than running a VPS.
antiframe
|next
|previous
[-]
alsobrsp
|root
|parent
[-]
elevation
|root
|parent
|next
[-]
Putting the generic term into your corporation's name can be effective means of claiming things that don't belong to you.
Jon Postel reserved 44.0.0.0/8 for a generic purpose: "amateur radio digital communications." Decades later, there was a successful heist when some enterprising individuals incorporated "Amateur Radio Digital Communications LLC" and misrepresented to ARIN that the assignment had actually been theirs. Immediately after ARIN gave them transfer rights, they pocketed 8 figures reselling the space to Amazon.
Github obviously isn't making explicit claims like this but they benefit whenever people with purchasing power implicitly understand that github is the only option.
orev
|root
|parent
|next
|previous
[-]
jjice
|root
|parent
|next
|previous
[-]
tardedmeme
|root
|parent
|next
|previous
[-]
nasretdinov
|next
|previous
[-]
mystifyingpoi
|next
|previous
[-]
pokstad
|root
|parent
|next
[-]
ok123456
|root
|parent
|next
|previous
[-]
Check it out from '/tmp' and make sure it still builds.
For a single-dev or small team, it beats having to do github runner epicycles to accomplish the same basic goal. Add in Firejail if you want environment isolation.
m463
|root
|parent
|next
|previous
[-]
eventually I can set up a proper git repo, set up credentials, etc.
I think it's like how some people use 127.0.0.1 for stuff, then later expand the software engineering process to do it right.
tonypapousek
|root
|parent
|next
|previous
[-]
Having a “local remote” would be an awfully quick way to do that, especially in situations with no/low network connection or a flakey upstream server.
adregan
|root
|parent
|next
|previous
[-]
Aside from that unique use case, I might consider this for storing code on a network attached drive (archival).
ulrikrasmussen
|root
|parent
|next
|previous
[-]
weaksauce
|root
|parent
|next
[-]
joeyguerra
|next
|previous
[-]
btw, Git also supports the HTTP protocol ...
jjice
|root
|parent
[-]
whax
|next
|previous
[-]
ucirello
|next
|previous
[-]
cerved
|next
|previous
[-]
Also handy if you're running an agent in a container on the local fs. Set up a local clone, contain the agent to that repo folder and have it hack away on that. Later, you step out of the container and do the syncing. You can't use worktrees in this situations.
Bare repos are also pretty cool. You can clone the git mailing list as a bare repo and search for threads there instead of setting up an mbox (same for the kernel obviously)