Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This is a great way to [...] work on server-side files without laggy typing or manual copying

This is the usecase mentioned in the article and it wouldn't work with a bare repo. But if the server your SSH'ing to is just a central point to sync code across machines, then you're right: multiple hoops mentioned in the article are solved by having the central repo bare.





See https://news.ycombinator.com/item?id=45713074 for a worked example of how it works with a bare repo.

yeah it seems odd that they don't just have remote> $HOME/repos/foo.git and then clone from there locally and remotely

FWIW a single user working on a remote versioned directory is indeed a reasonable use-case for receive.denyCurrentBranch=updateInstead, but IMO the article should have made it clear that it's not necessarily a good choice in general.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: